What formula would show me I already entered an invoice number once before?

  • Thread starter Thread starter Marvin Hlavac
  • Start date Start date
M

Marvin Hlavac

Hi All,

In column A I enter invoice numbers. Occasionally the same invoice number is
entered by a mistake. How to avoid that? Perhaps in column B a warning would
be displayed beside the invoice number that was entered second time. What
formula could I use?
 
Marvin, here is one way, will check for duplicates in A1:A10, change as
needed
=IF(SUMPRODUCT((COUNTIF(A1:A10,A1:A10)>1)+0)>1,"Duplicates exist","")

--
Paul B
Always backup your data before trying something new
Using Excel 2000 & 97
Please post any response to the newsgroups so others can benefit from it
** remove news from my email address to reply by email **
 
Hi Paul,

Marvin, here is one way, will check for duplicates in A1:A10, change as
needed
=IF(SUMPRODUCT((COUNTIF(A1:A10,A1:A10)>1)+0)>1,"Duplicates exist","")


It works and it is exactly what I needed. Thanks a million.
 

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

Similar Threads

Average If... 12
Average Unique 7
Matching like items 2
Unique Invoice Number 4
Count if unique 13
sequential invoice numbering 1
How do I create a formula that continuously numbers my invoices? 2
Formula 2

Back
Top