#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.4K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 145 Just for fun
- 62 Community Job Board
- 464 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!