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.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!