Google-sheets – How to highlight duplicate cells

conditional formattinggoogle sheets

I'd like a formula that highlights all duplicate cells, even if they are in different columns.

In my example spreadsheet A1 is equal to D15, the formula should highlight both, and so on with all worksheet duplicates, regardless of whether or not in the same column.

What would I have to do to accomplish that?

Best Answer

One way to accomplish this is to use conditional formatting in each cell, having it trigger with the custom formula =EXACT({cellA},{cellB}).