ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Do not allow duplicates (https://www.excelbanter.com/excel-discussion-misc-queries/265969-do-not-allow-duplicates.html)

txheart

Do not allow duplicates
 
Hi y'all,
I'm keeping a log which will ultimately grow quite lengthy. I've searched through 6 pages of this forum using the keywords allow duplicate, but they're all how to find, remove, etc., which isn't what I'm trying to accomplish,

I don't want the user to be able to enter a serial # (column E) if the serial number has already been entered on another row.

Cpearson's website gives an example, but I must be doing something wrong.
I have substituted =COUNTIF($E$4:$E$200,A4)=1 instead of his example =COUNTIF($A$1:$A$50,A1)=1 but that is telling me duplicate even when it's not. The column with the data that I don't want duplicates allowed is E.

On the Cpearson example above, what does the final A1 do? Does that need to be changed to E something?

Y'all are truly sanity savers and your help has been VERY appreciated each and every time you've helped me. I look forward to your reply.

Thanks -
Ky

wickedchew

Quote:

Originally Posted by txheart (Post 959540)
Hi y'all,
I'm keeping a log which will ultimately grow quite lengthy. I've searched through 6 pages of this forum using the keywords allow duplicate, but they're all how to find, remove, etc., which isn't what I'm trying to accomplish,

I don't want the user to be able to enter a serial # (column E) if the serial number has already been entered on another row.

Cpearson's website gives an example, but I must be doing something wrong.
I have substituted =COUNTIF($E$4:$E$200,A4)=1 instead of his example =COUNTIF($A$1:$A$50,A1)=1 but that is telling me duplicate even when it's not. The column with the data that I don't want duplicates allowed is E.

On the Cpearson example above, what does the final A1 do? Does that need to be changed to E something?

Y'all are truly sanity savers and your help has been VERY appreciated each and every time you've helped me. I look forward to your reply.

Thanks -
Ky

The COUNTIF function is:

=COUNTIF(Range, Criteria)

Range is where you have a list to be checked and Criteria is what needs to be looked for in your list.

txheart

Quote:

Originally Posted by wickedchew (Post 959543)
The COUNTIF function is:

=COUNTIF(Range, Criteria)

Range is where you have a list to be checked and Criteria is what needs to be looked for in your list.

According to your reply, if the don't duplicate data is in range E4:E200 my formula should be =COUNTIF($E$4:$E$200,E4)=1
correct?

Thank you for helping Wicked!

~Ky



Thank you for your help Wicked

wickedchew

Quote:

Originally Posted by txheart (Post 959552)
According to your reply, if the don't duplicate data is in range E4:E200 my formula should be =COUNTIF($E$4:$E$200,E4)=1
correct?

Thank you for helping Wicked!

~Ky



Thank you for your help Wicked

If the COUNTIF function outputs a value more than 1, hence there are duplicates within the list.


All times are GMT +1. The time now is 03:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com