Help with Count If formula on unique values only
I am trying to add a count to my sheet summary which gives me the number of contracts which are a certain status within my sheet eg. pending, signed & returned etc but each contract can be listed a number of times within the sheet and I only want the contract to count once in my summary.
For Example:
These entries are all for the same contract, 597, but in my count it shows as 25 entries not just 1.
I have seen a number of threads on similar issues and tried a whole combination of COUNTIFS, ANDS, COLLECT, DISTINCT formula combinations but each one has returned an error. Can anyone help me with the correct functions / formula for this?
Thanks
Vic
Answers
-
The combination of functions you're looking for are probably this: =COUNT(DISTINCT(COLLECT(
In your example, this would get you a count of 1 instead of 25:
=COUNT(DISTINCT(COLLECT([Contract Status]:[Contract Status], [Contract Status]:[Contract Status], [Contract Status]@row, [Coupa Contract Number]:[Coupa Contract Number], [Coupa Contract Number]@row)))
I hope this helps.
Cheers,
Ramzi
Ramzi Khuri - Principal Consultant @ Cedar Tree Consulting (www.cedartreeconsulting.com)
Feel free to email me: ramzi@cedartreeconsulting.com
💡 If this post helped you out, please help the Community by marking it as the accepted answer/helpful.
-
@Ramzi K thank you!
how about if i were to use this in a sheet summary on the whole sheet? i have tried the formula as above but i get #unparseable any ideas on how it needs to be changed to work on the whole sheet with different contract numbers?
-
Ramzi Khuri - Principal Consultant @ Cedar Tree Consulting (www.cedartreeconsulting.com)
Feel free to email me: ramzi@cedartreeconsulting.com
💡 If this post helped you out, please help the Community by marking it as the accepted answer/helpful.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!