Block duplicates

Premium

Each customer ID may only be used once. The rule is set on A2:A6 and written for A2. In C2, count how many times A2 appears in A2:A6 with COUNTIF and test that it is exactly 1. Lock the list with $.

C2
ABCDEF
1Customer ID Name Rule
21005 Anne Holm
31002 Jonas Berg
41001 Mette Lund
51003 Ali Khan
61004 Sara Juhl
7
8

Premium lesson

Unlock Drop-down lists and data validation and every other lesson

This is a premium lesson. Premium lets you solve it and every other lesson, take the timed mock tests, and earn certificates you can share on LinkedIn.

Next with premium:COUNTIFSUMIF
Need help?