COUNTIFS and Duplicate Values
Hello! I need to figure out a way count the number of records in my issue log, EXCEPT if the records have the same parent number, they can only be counted once.
Is there an easy way to do this? Is there a way to use the DISTINCT formula in the "Parent" column, but also count the blank rows, as long as the Record column isn't blank?
I am open to any suggestion! Thank you in advance!
Best Answer
-
I figured out my own solution:
Added a helper checkbox row and used a formula to identify duplicates in the "Parent" column: =IF(COUNTIFS(Parent:Parent, Parent@row, Parent:Parent, NOT(ISBLANK(@cell))) > 1, 1)
I then set up a workflow with the logic "If "Duplicate" column is checked, copy row." I copied the rows to a helper sheet.
Since my helper sheet only included the rows with duplicates, I was able to utilize the DISTINCT function.
Answers
-
I figured out my own solution:
Added a helper checkbox row and used a formula to identify duplicates in the "Parent" column: =IF(COUNTIFS(Parent:Parent, Parent@row, Parent:Parent, NOT(ISBLANK(@cell))) > 1, 1)
I then set up a workflow with the logic "If "Duplicate" column is checked, copy row." I copied the rows to a helper sheet.
Since my helper sheet only included the rows with duplicates, I was able to utilize the DISTINCT function.
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
- 142 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!