COUNTIF for a number within a Range
Morning
I'm using the following formula to count how many times a specific value is found in a column where many different clause values are listed, sometimes with multiple values in each cell.
=COUNTIFS({Audit - Range 1}, FIND(Clause@row, @cell) > 0)
Example
4.1
4.1.2
4.1
4.4, 4.8, 6.7
For example, I want to count how many times the value 4.1 appears in a column (see above). This formula works but also counts any other cell with the same value in a string as shown above. It count 4.1 3 times because its also in the 4.1.2 and I want to ONLY count the 4.1 values so return 2 times.
I'm hoping for some sort of unique value ability.
Any ideas?
Thanks
Best Answer
-
Perfect, I will try that. Thanks for the help!
Answers
-
Is the column a Multi-Select column?
If so, you can use the HAS function instead of Find to see if the cell HAS a specific value selected. For example:
=COUNTIFS({Audit - Range 1}, HAS(@cell, Clause@row))
Let me know if this works for you!
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Perfect, I will try that. Thanks for the help!
-
FYI, this worked perfectly, thanks 😀
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 67 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!