#INVALID DATA TYPE on SUMIFS formula
Hi.
I am using this formula to count the total $ amount of all values in one column if the date in another column falls within a specific year.
=SUMIFS({Incentive Location Audit Range 15}, {Incentive Location Audit Range 7}, YEAR(@cell)= 2023 )
{Incentive Location Audit Range 15} is a currency formatted column (US$ values) on another sheet.
{Incentive Location Audit Range 7} is a date formatted column (eg: 1-Apr-2023) on another sheet.
I have had success with our yearly sumif counts but not this one.
I have tried using "=SUMIF" and tried swapping the range and criteria around but these return a #INVALID OPERATION or #INVALID DATA TYPE error
Appreciate any advice please.
Best Answer
-
Try adjusting the year criteria to
IFERROR(YEAR(@cell), 0) = 2023
Answers
-
Try adjusting the year criteria to
IFERROR(YEAR(@cell), 0) = 2023
-
Hi,
At first that did not work but then I changed the SUMIFS to SUMIF and, using your recommendation, it has worked perfectly. Thank you :)
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!