Highlighting duplicates

Hi all,
I am trying to create a sheet that will highlight a duplicate entry in the Les Olsen ID column. I researched the subject and found the advice to use a formula like this =IF(COUNTIF(Column:Column, Column@row) >1,1) but when I try to apply it to my sheet it shows up as UNPARSEABLE. Can anyone tell me why this isn't working? I appreciate your expertise!
Answers
-
=IF(COUNTIFS([Les Olson ID]:[Les Olson ID], [Les Olson ID]@row) > 1, 1)
Write it like above, your range is only looking at a single cell, you want it to count the entire column. Your criteria [Les Olson ID]1@row is incorrect syntax, you can either reference a row number or @row, not both.
Jason Tarpinian - Sevan Technology
Smartsheet Aligned Partner
-
I see. I removed the 1s after Les Olsen ID but now I get #Circular Reference.
-
Hi @Tjmarget ,
The reason you're getting the #CIRCULAR REFERENCE error is because you are asking the formula to output data in the same column where it is looking for input. If you use the same formula:
=IF(COUNTIFS([Les Olson ID]:[Les Olson ID], [Les Olson ID]@row) > 1, 1)
in a separate helper column, convert it to a column formula and it should output a 1 whenever there is a duplicate. You can also use the same formula in a checkbox type column if that would better suit your purposes.
Once the formula is set up in the helper column, add a new conditional formatting rule. Depending on your column type, use one of the following:
- If Helper Column is 'checked', apply [highlight color] to the Les Olson ID column
or
- If Helper Column is equal to 1, apply [highlight color] to the Les Olson ID column
Once this is set up, you can right click on the helper column and hide it. The only thing you will see now is the highlighted duplicates.
Hope this helps! 😄
-
That makes sense! :) I got it to work. Thank you so much for the help!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.4K Get Help
- 464 Global Discussions
- 156 Industry Talk
- 509 Announcements
- 5.4K Ideas & Feature Requests
- 86 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 518 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 307 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!