COUNTIFS Formula not working when I add an ISBLANK statement
I have a COUNTIF formula that I can't get to work once I add an ISBLANK statement.
This is the fomula that works:
=COUNTIFS({Payment Type}, =$Status@row, {Case Date}, MONTH(@cell) = 8, {Case Date}, YEAR(@cell) = 2020, {Status}, ="Completed")
When I try to account for rows where the Payment Type is blank, I tried this formula:
=COUNTIFS({Payment Type}, ISBLANK(@cell), {Case Date}, MONTH(@cell) = 8, {Case Date}, YEAR(@cell) = 2020, {Status}, ="Completed")
However, I'm getting an #INVALID DATA TYPE error. What am I doing wrong?
Best Answers
-
month(@cell)=8
month day and year formulas pop an error when used on a blank cell. use this to replace your month(@cell)
iferror(month(@cell),0)=8
*you should also do this for your year formula
-
Thank you, that worked!
Answers
-
month(@cell)=8
month day and year formulas pop an error when used on a blank cell. use this to replace your month(@cell)
iferror(month(@cell),0)=8
*you should also do this for your year formula
-
Thank you, that worked!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!