Count IF one of many values appears
Hi there,
I always get hung up on the HAS formula.
I am trying to pull data for a dashboard in a separate dashboard data sheet so I am referencing another sheet, let's call it "Supplier Data" and I want to count the number of times the Category column says "3 - Duplicate" and the BU column (multi-select) has a specific group, let's say "IT"
So =COUNTIFS({Category}, "3 - Duplicate", {BU}, HAS({BU}, "IT"))
What did I do wrong above?
Best Answer
-
Hey @Emily McNeeley
I believe you almost got it! When using Has, you don't have to put the range in again, since you want to search if each specific cell has the value "IT", you would use @cell instead.
So it would be=COUNTIFS({Category}, "3 - Duplicate", {BU}, HAS(@cell, "IT"))
Try that and see if it works for you :)
Answers
-
Hey @Emily McNeeley
I believe you almost got it! When using Has, you don't have to put the range in again, since you want to search if each specific cell has the value "IT", you would use @cell instead.
So it would be=COUNTIFS({Category}, "3 - Duplicate", {BU}, HAS(@cell, "IT"))
Try that and see if it works for you :)
-
That works - I was so close!! Thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 430 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!