Is there a formula to restrict counting ID once?
In my sheet, I have a column that counts the number of extensions for each request. I would like my sheet summary to show the number of of requests that have been extended once, twice, three times, etc. The number of requests extended once was easy to formulate since the request is only referenced once (=COUNTIF([Number of Extensions]:[Number of Extensions], 1). However, I'm having problems correctly counting those with ID's that repeat. Is there something I can add to the formula that would only count Request ID's once even though there are multiple rows with that ID?) Would there be a better way to set up?
Thanks!
Answers
-
Hi @Sara Ross
What you're looking for is the DISTINCT function! This will count Unique Values in that column, so only counting one ID, even if it's repeated.
You'll want to use COLLECT as well, wrapped in a COUNT function. The COLLECT will work like the IF portion, filtering down based on your other criteria.
Try this:
=COUNT(DISTINCT(COLLECT([Request ID]:[Request ID], [Number of Extensions]:[Number of Extensions], 1)))
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Awesome...worked perfectly!
Much appreciated,
Sara
-
Wonderful! Glad I could help. 🙂
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Worked beautifully!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!