Why it works
- What it does
- COUNTIF over a range that grows as it fills down, $B$2:B2, counts how many times a value has appeared so far. More than 1 means a repeat, wherever the first copy is. It works when the repeat is not on the next row.
- The shape of the formula
- =IF(COUNTIF($B$2:B2, B2)>1, "Repeat", "")
- How to remember it
- Lock the top, free the bottom: the range grows one row at a time.
- The usual mistake
- Comparing each row with the one above it. A repeat two rows down, or a month later, slips through.
Keep practicing
- Count unique values in a columnHow many different customers ordered this month?Open
- Mixed references: $C$2:C2 and other half-locked rangesHow does $C$2:C2 make a range that grows as it fills down?Open
- Compare two lists: which invoices are paidHow do I check invoices against a bank statement?Open
- Lesson: Repeats and matching two listsA short lesson in your workspace: the idea, small steps on a sheet, one task with new dataOpen
Updated