If = 0, return a Blank or ""
I'm using the below to count different types of calls we receive, by person, by month. If a person gets none of those calls in Jan for instance I want it to return a blank, not zero. I tried IFERROR as below but that did not work. Thanks!
=COUNTIFS({2025 Call/Email Log Recipient}, ="Bob Flowers", {2025 Call/Email Log Contact Type}, ="client call", {2025 Call/Email Log Date}, >=DATE(2025, 11, 1), {2025 Call/Email Log Date}, <=DATE(2025, 11, 30)) works but returns 0's if nothing meets the criteria. we want blank cell.
=COUNTIFS(IFERROR({2025 Call/Email Log Recipient}, ="Bob Flowers", {2025 Call/Email Log Contact Type}, ="client call", {2025 Call/Email Log Date}, >=DATE(2025, 11, 1), {2025 Call/Email Log Date}, <=DATE(2025, 11, 30), ), "") returns unparseable
Answers
-
Hello @lisalettieri
Using IFERROR will not work since value "0" is not considered as error message.
Try this:
=IF(COUNTIFS({2025 Call/Email Log Recipient}, ="Bob Flowers", {2025 Call/Email Log Contact Type}, ="client call", {2025 Call/Email Log Date}, >=DATE(2025, 11, 1), {2025 Call/Email Log Date}, <=DATE(2025, 11, 30)) = 0, "", COUNTIFS({2025 Call/Email Log Recipient}, ="Bob Flowers", {2025 Call/Email Log Contact Type}, ="client call", {2025 Call/Email Log Date}, >=DATE(2025, 11, 1), {2025 Call/Email Log Date}, <=DATE(2025, 11, 30)))
Melissa Yamada
melissa@insightfulsheets.com
Data made simple, spreadsheets reimagined
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 448 Global Discussions
- 154 Industry Talk
- 504 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 513 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!