Compare two cell values in the same column
Hi all! I have a column of case numbers and I want the cells to turn red/have a flag or some other indicators if there is a duplicate (so the same case number). Is there a formula for this? I have seen a lot of formulas for comparing cell values but only if they are in different columns. Thanks!
Best Answer
-
What I would do is create a column next to your column with the case numbers and enter this formula in the new column:
=COUNTIF([Case Number]:[Case Number],[Case Number]@row
What this will do is count every time that exact number appears in the case number column and then you can setup up conditional formatting to shade the row if the result is more than 1.
Answers
-
What I would do is create a column next to your column with the case numbers and enter this formula in the new column:
=COUNTIF([Case Number]:[Case Number],[Case Number]@row
What this will do is count every time that exact number appears in the case number column and then you can setup up conditional formatting to shade the row if the result is more than 1.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!