Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jonah
 
Posts: n/a
Default Validate in WS to prevent dual data entry

How do I validate that the data entered in a worksheet is not a
duplicate from a list of 150 names. I have two columns with the same
list, and need a way to prevent dual entries.

Jonah

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Validate in WS to prevent dual data entry

"Jonah" wrote:
How do I validate that the data entered in a worksheet is not a
duplicate from a list of 150 names.
I have two columns with the same list,
and need a way to prevent dual entries.


Assume the 150 names are in col A
and col E is the 2nd input col

Select col E
Click Data Validation
Allow: Custom
Formula: =COUNTIF(A:A,E1)<1
Click OK

Test it out ..

Perhaps a better alternative is to use a defined range,
eg: NList =Sheet1!$A$1:$A$150
(Defined ranges can be created via: Insert Name Define)

Then we could validate the "2nd" input col within any sheet
via the same steps above,

eg: assuming col E in Sheet3 is the "2nd" input col

In Sheet3,

Select col E
Click Data Validation
Allow: Custom
Formula: =COUNTIF(NList,E1)<1
Click OK
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a standard data entry form be used to change formats of cells? BarryW Excel Discussion (Misc queries) 0 January 21st 06 03:06 PM
Protected Row-Oriented Data Entry Paul Excel Worksheet Functions 2 January 20th 06 06:00 PM
Inserting a new line when external data changes Rental Man Excel Discussion (Misc queries) 0 January 11th 06 07:05 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
Identify end of data in worksheet, prevent overshoot VPH Excel Discussion (Misc queries) 2 April 29th 05 07:48 PM


All times are GMT +1. The time now is 08:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"