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
- Customer Resources
- 66.1K Get Help
- 430 Global Discussions
- 149 Industry Talk
- 490 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 154 Just for fun
- 74 Community Job Board
- 499 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 305 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!