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
- 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!