How to color-band by duplicate entry
Hello! I've looked in a few different spots for this answer, but haven't seen anything that works for my setup.
I run webinars that have the same topic hosted on two different dates. I need to keep the dates in separate rows in Grid View so they show properly in Calendar View. I'd like to color-band the rows by topic instead of every other.
I've tried following this:
- Select the range of cells you want to apply the color banding to.
- Click on the "Format" dropdown menu in the top toolbar, and select "Conditional formatting."
- In the "Conditional formatting" panel that appears on the right, select "Add rule."
- In the "Add formatting rule" panel, choose "Custom formula is" from the first dropdown.
- In the text field next to the dropdown, enter the following formula:
- =countif([Topic Name]:[Topic Name], [Topic Name]@row) > 1
- This formula counts the number of times the topic name in the current row appears in the entire "Topic Name" column. If the count is greater than 1, it means that the current row has a duplicate topic name.
- Choose the color you want to use for the formatting in the "Color" dropdown.
- Click "Save" to apply the formatting.
However, I don't have these options. When I click the "Conditional Formatting" button in the top toolbar, I can only add a new rule based on column and criteria. I can't add a custom formula as steps 4 and 5 mention. Is there a workaround for this? Do I have incorrect settings activated?
Thank you!
Answers
-
Where did you see those instructions? It that Chat GPT? :) That's interesting.
The way I do this is add a Column (type checkbox) to your sheet. Call it Dup. Add this formula. Make it a column formula.
=IF(COUNTIF([Topic Name]:[Topic Name], [Topic Name]@row) > 1, 1, 0)
Then in Conditional Format, set it so that when the Dup column is checked, it highlights the row.
-
@Ryan Sides Yep, you got me! It's been awesome for smaller questions on building in SmartSheets.
Your formula worked! And I realize now that I'm asking SmartSheet to do the wrong thing. It's checking all instances of duplicates, where I'm looking for color band by topic. Not necessarily all duplicates. I may need to think more about how to pull this off. Thanks for your help!
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives