How do I set up a formula to get a result when multiple cells match?

LMR65
LMR65 ✭✭
edited 07/17/24 in Formulas and Functions

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

  • Adam Murphy
    Adam Murphy ✭✭✭✭✭✭

    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

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!