How to use Conditional Formatting for duplicate values in a Column
I have a simple Smartsheet for re-ordering. The user scans the UPC of the item they need reordered. I'd like to setup a conditional format to highlight a cell if the UPC that is being added is already in the sheet. I can do this in Excel, having a hard time figuring it out in Smartsheet.
Answers
-
You'll need a helper column with a formula in it to flag rows with duplicates.
=IF(COUNTIFS(UPC:UPC, @cell = UPC@row) > 1, 1)
Then you would build your conditional formatting off of this helper column.
-
Thank you! This works, but if the value is removed due it being a duplicate (which is what I want) the cell says colored. Is there anyway around this?
-
It shouldn't. I have noticed in a few of my sheets that conditional formatting is running a bit slow today. Try giving it a minute and then refreshing your browser.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 457 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!