#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 :)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 412 Global Discussions
- 221 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 140 Just for fun
- 57 Community Job Board
- 461 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!