Countif for an EXACT name
Hey there I have a countifs I'm working on however I am trying to count the instances of "Apples" only but not when it says "Apples and Bananas" or "Apples and Oranges" I only want it to return when it matches Apples and only apples in a cell.
Any time I try to do that for example:
=COUNTIFS(Status:Status, "Complete", [Task Name]:[Task Name], "Apples")
Any instance of Apples and Bananas also shows in it, when I just need Apples.
Dr. St Nicholas Burrus DHA, PMP
I build Smartsheets for the US Government, State Government, and about a dozen of the US Fortune 100s.
Answers
-
Hi
I think the formula you have should do exactly what you want. I doublechecked with your exact situation and got the count I was expecting.
=COUNTIFS(Status:Status, "Complete", [Task Name]:[Task Name], "Apples")
Maybe there is something else confounding this?
-
Hey there! Thank you! How weird, on mine I'm getting a count of 453 versus there only being 58 exactly. Wonder if my version is different.
I'm realastically using something like "Company Apples" and then there's a "Company Apples and Bananas" but any time I search for Company Apples in the countif it adds everything else in it.
Dr. St Nicholas Burrus DHA, PMP
I build Smartsheets for the US Government, State Government, and about a dozen of the US Fortune 100s.
-
That doesn't sound like a simple formula issue and I cannot replicate it. I go to a lot of trouble to do the opposite of what you want!!! Counting the exact match is easier. Except when it isn't. I have no idea why it isn't for you. Sorry and good luck.
-
Hi @Nick Burrus, try this
=COUNTIFS(status:status, "Complete", [task name]:[task name], HAS(@cell, "Apples"))
Sincerely,
Jacob Stey
-
So I deleted the entire sheet and redid it and it suddenly works. Must've had a bugged sheet or something!
Dr. St Nicholas Burrus DHA, PMP
I build Smartsheets for the US Government, State Government, and about a dozen of the US Fortune 100s.
-
Glad the formula was OK!
If in doubt turn it off and on again 😉
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 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!