How do I set up a formula to get a result when multiple cells match?
LMR65
✭✭
I have two column, one that reads "Sec." and one that reads "Subsec.". I want to color code both sells when more than one Subsec. match each other and so does the Sec.. The data is in the same sheet.
For example, in the screenshot, 1016 (a)(14) has a match and I want those two fields color coded, but I don't want 1202 (a)(14) to be color coded because 1202 is a different Sec.
Answers
-
I would use a helper column with a formula to detect the match, such as =IF(COUNTIFS([Sec.]:[Sec.], [Sec.]@row, [Subsecs.]:[Subsecs.], [Subsecs.]@row) > 1, 1, 0) . Make the helper column checkbox column, and then create a conditional rule based off the helper column that colors those 2 cells when checked.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!