Count distinct values based on other cell criteria
I have been able to figure out how to count distinct values in a column. Now I would like an additional complexity of asking the formula only to count cells if it meets the criteria in another column.
If the value in the Status column is 'Live', count the distinct number values in the UniqueDiseaseID column.
=COUNTIF(Status2:Status1083, "Live") COUNT(DISTINCT(UniqueChapterID2:UniqueChapterID1083))
I got this far, I am sure syntax is a mess.
Thanks for your help!
Answers
-
@Ruth Schoonover You'll need to use an if statement to check the value of the status column.. but the bigger question is... where are you wanting to put the result? *I THINK* you want to check the value of the status column on a given row, then put the result of the count distinct into a cell in this row?
If so.. then you would simple use if( Status@row = "Live", COUNT(DISTINCT(UniqueChapterID2:UniqueChapterID1083)), "")
Darren Mullen, join the Smartsheet Guru Elite
Get my 7 Smartsheet tips here
Author of: Smartsheet Architecture Solutions
-
I have this successfully counting the distinct Unique Chapter IDs
=COUNT(DISTINCT(UniqueChapterID:UniqueChapterID))
Now I only want it to count the Unique Chapter ID if the value in the Status column is 'Live'
-
I want the result/answer to be placed in the cell where I have the formula.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 137 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!