Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

IF duplicate AND a condition is met, then Check Box

edited 02/14/25 in Formulas and Functions

I need to create a formula that will check a box if there is a duplicate in one column and in the same row a condition is met.

The duplicate would patient MRN and the condition in would be "Referred".

If the MRN is a duplicate and only if "Referred" is selected for both rows would the checkbox be checked on both rows.

If the MRN is a duplicate, but one row is "Referred" and the other row is "Not Referred" then no checkbox.

Thank you for the help!!

Best Answer

  • Community Champion
    Answer ✓

    You will need to adjust the column names to match your sheet, but other than that, this should get you where you need to go:

    =IF(COUNTIFS([Patient MRN]:[Patient MRN], [Patient MRN]@row, [Referred Column]:[Referred Column], "Referred") > 1, 1, 0)

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions