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
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!