Count IF function not working
Hi,
I am trying to create a count if function that will count all the cells that include text in a row, but not if that text is "NONE" or "CURRENT REQ"
I've gotten this far, =COUNTIFS(Taleo11:[Media 5 Request]11, OR(@cell = "NONE", @cell = "CURRENT REQ")) but the formula keeps returning 0 no matter what is in the row.
Can anyone tell me what I am doing wrong? I'm thoroughly confused.
Best Answer
-
@STice326 try this then,
=COUNTIFS(Taleo11:[Media 5 Request]11, not(contains("none", @cell)), Taleo11:[Media 5 Request]11, not(contains("current req", @cell)), Taleo11:[Media 5 Request]11, ISTEXT(@cell))
Answers
-
@STice326 that formula is counting only if it's none or current req
Try
=COUNTIFS(Taleo11:[Media 5 Request]11, OR(@cell <> "NONE", @cell <> "CURRENT REQ"))
or
=COUNTIFS(Taleo11:[Media 5 Request]11, <> "NONE", Taleo11:[Media 5 Request]11, <> "CURRENT REQ"))
-
Thanks for trying, but it still doesn't seem to be working, it IS counting now so I'm not getting a 0 in return, but it isn't excluding "NONE" and "CURRENT REQ" from the count for whatever reason.
And now it is also counting the dates in the range, which also doesn't help.
For context, here's a small snippet of my datasheet:
So, my problem is I created this function for our sheet, =COUNTIF(Taleo15:[Media 5 Request]15, ISTEXT(@cell)) and that counts all the cells that are text only. And the point of that on my sheet is that we are trying to count the action items that we have completed on each row.
If the row starts with "Open and Post" then this formula works great, it counts the action items correctly. =COUNTIF(Taleo15:[Media 5 Request]15, ISTEXT(@cell))
But then one of my coworkers pointed out that NONE is being counted and it's not a task, and that if it says "CURRENT REQ" in that first column it was also being counted and it doesn't count as a task for us.
So the goal here was to edit the original function to exclude those two modifiers, and I'm now realizing that Current Req isn't in caps so that could be part of it, but that's what I am trying to accomplish. In Excel, I can use the "*" wildcard symbol to get it to count the correct cells and not the dates, but I'm not seeing a way to accomplish that in Smartsheet.
I hope that context sort of helps.
-
@STice326 try this then,
=COUNTIFS(Taleo11:[Media 5 Request]11, not(contains("none", @cell)), Taleo11:[Media 5 Request]11, not(contains("current req", @cell)), Taleo11:[Media 5 Request]11, ISTEXT(@cell))
-
That works! Thank you so much
-
Awesome!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 137 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!