Unique entries

Macker72

Board Regular
Joined
Mar 5, 2002
Messages
107
Hi
I am using excel to record licence numbers and i want to ensure that i don't enter the same licences keys twice. i know i can sort each time and search for duplicates but this will not be practical.
thanks for your help.
Macker
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
On 2002-04-18 02:02, Macker72 wrote:
Hi
I am using excel to record licence numbers and i want to ensure that i don't enter the same licences keys twice. i know i can sort each time and search for duplicates but this will not be practical.
thanks for your help.
Macker

Lets suppose that the licence keys are entered in A from A2 on.

Activate A2 (which is as yet empty).
Activate the option Data|Validation.
Select Custom for Allow.
Enter as formula:

=COUNTIF($A$1:A1,A2)=0

Activate OK.

Copy down A2 as far as needed.
 
Upvote 0
On 2002-04-18 02:02, Macker72 wrote:
Hi
I am using excel to record licence numbers and i want to ensure that i don't enter the same licences keys twice. i know i can sort each time and search for duplicates but this will not be practical.
thanks for your help.
Macker

If your records are in Column A.

Goto insert>name>define, type a name that mean something, like RecordRange.

in the Refers To box type

=OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),1)

press add

while in the Define Names box create a name like UniqueRecords

the Refers to box put:

=COUNTA(Sheet1!$A:$A)-IF(LEN(RecordRange)>0,SUMPRODUCT(1/COUNTIF(RecordRange,RecordRange)))

press add.

Goto Data>Validation>Custom and the in Formula box type

=UniqueRecords=0

should do the trick.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top