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
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
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
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
And just like magic, it works! Thank you, thank you!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!