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
- 63.3K Get Help
- 386 Global Discussions
- 212 Industry Talk
- 446 Announcements
- 4.6K Ideas & Feature Requests
- 141 Brandfolder
- 132 Just for fun
- 131 Community Job Board
- 453 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 292 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!