How do I set up a formula to get a result when multiple cells match?
Options
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
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!