Conditional Formatting To Red out a Row, if ID# has been used before
Hi all,
I am trying to create a conditional formatting to mark a row Red if the ID# has been used before. I have plenty of conditional formatting experience however I just can't seem to figure this part out. Basically in a list of projects I.e 1,2,3,4,5 they move at different speeds and sometimes a project wont be on a newer sheet so numbering can get confusing. If a 2nd project were to be added as project 4, I would want both to go red so I know to update 1 of them.
Answers
-
You may need a helper column to count duplicates and base your conditional formatting on that column.
=IF(COUNTIF([ID#]:[ID#], [ID#]@row) > 1, 1, 0)
Where the formula returns "1" there is a duplicate.
You could change it to use text if you prefer.
=IF(COUNTIF([ID#]:[ID#], [ID#]@row) > 1, "DUP", "OK")
Hope this helps!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- 10.7K Get Help
- 63 Global Discussions
- 68 Industry Talk
- 385 Announcements
- 3.5K Ideas & Feature Requests
- 55 Brandfolder
- 125 Just for fun
- 50 Community Job Board
- 464 Show & Tell
- 40 Member Spotlight
- 44 Power Your Process
- 28 Sponsor X
- 234 Events
- 7.3K Forum Archives
Check out the Formula Handbook template!