Why won't my COUNTIF formula not count anything from source sheet?
Hi all,
I currently have a system for three spreadsheets: 1) Masterlist for open/closed actions that feeds a 2) Open Actions sheet, and a 3) Closed Actions sheet. The formulas for the first two sheets work perfectly, however, when it comes to the third sheet (Closed Actions), my COUNTIFS formula will not count anything on it. I've tried several formulas to try and understand the cause of this issue, but nothing works. Below I've attached an example of my issue, along with the formula I'm using:
=COUNTIFS({date_closed}, IFERROR(YEAR(@cell), 0) = 2020, {date_closed}, IFERROR(MONTH(@cell), 0) = 1)
Thanks in advance!
Carolina
Best Answer
-
I copied your formula directly into a few of my test sheets, updated the reference, and it worked just fine. My only thought is that the reference sheet might be stale or broken, or could be copied over from something else. I would start the formula over, remake the reference under a slightly different name (something like date_closed1) and see if it reacts any differently.
Answers
-
I copied your formula directly into a few of my test sheets, updated the reference, and it worked just fine. My only thought is that the reference sheet might be stale or broken, or could be copied over from something else. I would start the formula over, remake the reference under a slightly different name (something like date_closed1) and see if it reacts any differently.
-
Thanks David!
I figured it was better to just copy the data into a new sheet and update the formulas, which somehow solved the issue.
-
Interesting. Well, glad you got it working.
-
Greetings,
I came across a similar situation with metrics production. In some cases COUNTIFS give me a value and if I use COUNT(COLLECT( and apply teh same criteria, I get another value, usually +1 from COUNTIFS. When I check the source data, teh COUNT(COLLECT( produces the right tally but COUNTIFS doesn't. I can't figure it out because it doesn't always happen. I can't find rhyme or reason. I decided to use COUNT(COLLECT(... going forward.
Best regards,
Marc Roussel
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!