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
- Customer Resources
- 65K Get Help
- 443 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 129 Brandfolder
- 150 Just for fun
- 70 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!