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
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 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!