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
- Customer Resources
- 65.5K Get Help
- 448 Global Discussions
- 145 Industry Talk
- 481 Announcements
- 5.1K Ideas & Feature Requests
- 85 Brandfolder
- 152 Just for fun
- 73 Community Job Board
- 492 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 304 Events
- 37 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!