If the value does appear more than once, we run another IF + COUNTIF combo.

So, at each row, the formula checks the count inside the range up to the current row.

Each additional column also needs to be entered as an expanding range.

Flag duplicates simple formula

Flag duplicates simple formula

Flag duplicates simple formula

Flag duplicates simple formula

Flag duplicates simple formula

Excel formula: Highlight duplicate values

Excel formula: Range contains duplicates

Excel formula: Customer is new

Excel COUNTIF function

Excel COUNTIFS function

Article image