COUNTIFS returning 0
I am having an issue with the formula below. I am attempting to get the count where the year of {Conv Rec 020} equals the cell "2020" and the month of {Conv Rec 020} equals 1 (aka: January). I have quoted the 1 and get the same results.
The formula is returning "0"... any thoughts to return the correct values? It should be 57.
=COUNTIFS(IFERROR(YEAR({Conv Rec 020}), 0), =Year1, IFERROR(MONTH({Conv Rec 020}), 0), 1)
{Conv Rec 020} is a DATE column from the referenced sheet
Year1 = 2020
Best Answer
-
Two curly brackets are out of place. Add a curly bracket immediately after the Countif parenthesis. Remove curly bracket ahead of @cell. I had caught these errors last night and corrected but somehow the editing didn't 'stick' when I posted.
Answers
-
Hey
try this
=COUNTIFS({Conv Rec 020},IFERROR(YEAR(@cell), 0) =Year1, {Conv Rec 020},IFERROR(MONTH(@cell), 0)=1)
-
-
Two curly brackets are out of place. Add a curly bracket immediately after the Countif parenthesis. Remove curly bracket ahead of @cell. I had caught these errors last night and corrected but somehow the editing didn't 'stick' when I posted.
-
Eureka- It worked!! Thank you so much for your help!
=COUNTIFS({Conv Rec 020}, IFERROR(YEAR(@cell), 0) = Year1, {Conv Rec 020}, IFERROR(MONTH(@cell), 0) = 1)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!