SUMIFS: IFERROR Function to Ignore Empty Date Cells Not Working
Hello,
I need to add an IFERROR function to the below formula, but cannot figure out what to input to make it work. I keep getting #INVALID DATA TYPE, #UNPARSEABLE, and #INCORRECT ARGUMENT SET errors.
The goal is to return the total Amount for a particular Team (Retail in this instance) by week for only rows that have an Award Date entered.
=SUMIFS(Amount:Amount, Team:Team, "Retail", [Award Date]:[Award Date], WEEKNUMBER(@cell) = 8)
This is just one of my many failed attempts:
=SUMIFS(Amount:Amount, Team:Team, "Retail", [Award Date]:[Award Date], WEEKNUMBER(@cell) = 8, IFERROR(WEEKNUMBER(@cell) = 0))
Any help would be greatly appreciated!
Best Answer
-
Hi @Miranda F.
You're building this in the right direction! Date functions don't like it when there are blank cells or cells with text in a referenced range. The IFERROR would go around the WEEKNUMBER function directly, try this:
=SUMIFS(Amount:Amount, Team:Team, "Retail", [Award Date]:[Award Date], IFERROR(WEEKNUMBER(@cell), "") = 8)
Cheers,
Genevieve
Answers
-
Hi @Miranda F.
You're building this in the right direction! Date functions don't like it when there are blank cells or cells with text in a referenced range. The IFERROR would go around the WEEKNUMBER function directly, try this:
=SUMIFS(Amount:Amount, Team:Team, "Retail", [Award Date]:[Award Date], IFERROR(WEEKNUMBER(@cell), "") = 8)
Cheers,
Genevieve
-
And just like magic, it works! Thank you, thank you!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!