Countifs in Sheet Summary Not correct Result
Hi,
This formula is in my project plan summary sheet. I want to count the rows where Level = 2.1 or Level = 3.1 and Status = "Not Started.
This is my formula:
=COUNTIFS(Status:Status, "Not Started", Level:Level, "2.1", Level:Level, "3.1")
It returns a 0. and it should be 11.
Best Answer
-
@Michele L Yes. It all depends on the data type in the column you are referencing. Numerical values don't have quotes but text values do.
Answers
-
That is because the COUNTIFS is basically an AND function. The way you have it written, it will only count rows where the level is both 2.1 and 3.1 at the same exact time (which is not possible. You will need an OR function tucked in like so:
=COUNTIFS(Status:Status, "Not Started", Level:Level, OR(@cell = "2.1", @cell = "3.1"))
-
Hi Paul,
That did not work. =COUNTIFS(Status:Status, "Not Started", Level:Level, OR(@cell = "2.1", @cell = "3.1")) Still coming up 0.
-
Ok, I got it to work. Seems i had to remove quotes.
=COUNTIFS(Level:Level, OR(@cell = 3.1, @cell = 2.1), Status:Status, "Not Started")
-
@Michele L Yes. It all depends on the data type in the column you are referencing. Numerical values don't have quotes but text values do.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!