Identifying Duplicate Values through Conditional Formatting
Smartsheet Community Members -
I'm using Smartsheet (Forms) to manage system access requests. Users provide their Username and to which System(s) they need access.
I'm trying to employ conditional formatting so I can easily identify which requests are duplicative based on whether a request already exists for the same Username AND for the same System(s).
Experts of Smartsheet - What is the best way to approach this? IF + COUNTIF?
Cheers & Thanks in advance for your help!
Hni
Best Answers
-
Try this in a "Duplicates" column:
=COUNTIFS(Username:Username, <>"", Username:Username, =Username@row, [System(s)]:[System(s)], =[System(s)]@row)
This will result in 1 for unique rows, 2 (or more) for rows with duplicates, and will ignore rows without a username (blank rows.)
Conditional Formatting: Where Duplicates column is greater than 1, make the entire row 24-pt BOLD Type with hot pink highlighter (or whatever floats your boat, LOL)
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Right click on a cell that has the formula. Select "Convert to Column Formula" down at the bottom. Then it automatically is there in that column in all rows and any new rows as they are created.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
Try this in a "Duplicates" column:
=COUNTIFS(Username:Username, <>"", Username:Username, =Username@row, [System(s)]:[System(s)], =[System(s)]@row)
This will result in 1 for unique rows, 2 (or more) for rows with duplicates, and will ignore rows without a username (blank rows.)
Conditional Formatting: Where Duplicates column is greater than 1, make the entire row 24-pt BOLD Type with hot pink highlighter (or whatever floats your boat, LOL)
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Jeff - Thanks! That worked perfectly.
Would you happen to know how to have the formula 'run' any time a new row is added in the "Duplicates" column?
Tried to use automation/workflows and all it did was put an apostrophe before the formula lol. 🤦♂️
Re: Hot Pink Highlighting - Done 😆!
Thanks again - Hni
-
Right click on a cell that has the formula. Select "Convert to Column Formula" down at the bottom. Then it automatically is there in that column in all rows and any new rows as they are created.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Is this seriously the only way to conditionally format a column that has duplicates? Even for the Primary Column (which you would think would have an automatic way of notifying you of a duplicate) -- SmartSheet has no such function?
-
@Stephen_at_ODOC As far as I know, nothing new has been added for duplicate detection functionality. Keep in mind, the "Primary" column in Smartsheet's world isn't the same as a Primary Key in a relational database, so identifying or preventing dupes isn't built in. The Primary column's purpose is to serve as the place for the data you're most likely to use to identify the data in the rest of the row, or as the key piece of data that ties multiple rows together.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives