Compare two cell values in the same column

Hi all! I have a column of case numbers and I want the cells to turn red/have a flag or some other indicators if there is a duplicate (so the same case number). Is there a formula for this? I have seen a lot of formulas for comparing cell values but only if they are in different columns. Thanks!

Tags:

Best Answer

  • Dave from JBM
    Dave from JBM ✭✭✭✭✭
    edited 03/18/22 Answer ✓

    What I would do is create a column next to your column with the case numbers and enter this formula in the new column:


    =COUNTIF([Case Number]:[Case Number],[Case Number]@row


    What this will do is count every time that exact number appears in the case number column and then you can setup up conditional formatting to shade the row if the result is more than 1.



Answers

  • Dave from JBM
    Dave from JBM ✭✭✭✭✭
    edited 03/18/22 Answer ✓

    What I would do is create a column next to your column with the case numbers and enter this formula in the new column:


    =COUNTIF([Case Number]:[Case Number],[Case Number]@row


    What this will do is count every time that exact number appears in the case number column and then you can setup up conditional formatting to shade the row if the result is more than 1.



Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!