ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Prevent Repeating Data Entry (https://www.excelbanter.com/excel-programming/391627-prevent-repeating-data-entry.html)

Ryan

Prevent Repeating Data Entry
 
Howdy,

I need a way to prevent a user from entering duplicate data in a range of
cells (ex. C6:C36). I need to prevent the user from entering an invoice
number twice. I don't know if this is something for Data Validation or not. I
have been trying that and cant get it to work.

Bernie Deitrick

Prevent Repeating Data Entry
 
Ryan,

Select C6:C36, the use Data / Validation... on the "Settings" tab, Select Custom under "Allow"
and use the formula

=COUNTIF($C$6:$C$36,C6)=1

HTH,
Bernie
MS Excel MVP


"Ryan" wrote in message
...
Howdy,

I need a way to prevent a user from entering duplicate data in a range of
cells (ex. C6:C36). I need to prevent the user from entering an invoice
number twice. I don't know if this is something for Data Validation or not. I
have been trying that and cant get it to work.




Ryan

Prevent Repeating Data Entry
 
Thanks a lot, thats helped out alot

"Bernie Deitrick" wrote:

Ryan,

Select C6:C36, the use Data / Validation... on the "Settings" tab, Select Custom under "Allow"
and use the formula

=COUNTIF($C$6:$C$36,C6)=1

HTH,
Bernie
MS Excel MVP


"Ryan" wrote in message
...
Howdy,

I need a way to prevent a user from entering duplicate data in a range of
cells (ex. C6:C36). I need to prevent the user from entering an invoice
number twice. I don't know if this is something for Data Validation or not. I
have been trying that and cant get it to work.





DocBrown

Prevent Repeating Data Entry
 
What If I already have validation Allow=List AND I want to detect duplicates
in range say H13:H20

Validation:
Allow: List
Source: =AccountList

John

"Bernie Deitrick" wrote:

Ryan,

Select C6:C36, the use Data / Validation... on the "Settings" tab, Select Custom under "Allow"
and use the formula

=COUNTIF($C$6:$C$36,C6)=1

HTH,
Bernie
MS Excel MVP


"Ryan" wrote in message
...
Howdy,

I need a way to prevent a user from entering duplicate data in a range of
cells (ex. C6:C36). I need to prevent the user from entering an invoice
number twice. I don't know if this is something for Data Validation or not. I
have been trying that and cant get it to work.






All times are GMT +1. The time now is 10:01 AM.

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