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
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!