Unique Invoice Number

G

Guest

I enter invoice numbers (alpha/numeric) in one column
titled Invoice Number. My question is: Is there a way
that Excel can tell me if I have already entered the
invoice number as my file grows? I do not want the same
invoice number entered more than once on my spreadsheet.

Please help.
 
N

NHarkawat

Select column A
then Using data validation under custome type the formula:
=countif($a1:$a50000,a1)=1
It will give an error message if a duplicate invoice numer is re-entered
 
S

sphenisc

Put in a conditonal format for the whole column

e.g if it's column B

Under Format menu select Conditional formatting
Change 'Cell Value is' to 'Formula is'


=COUNTIF($B$1:$B1,$B1)>1

and select a suitable warning format e.g. red background
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top