Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ted Rogers
 
Posts: n/a
Default Data validation question

A colleague runs the car-park lottery for our organisation. She uses an
Excel spreadsheet witha round 1500 entries. The sheet identifies each staff
member by means of their exclusive payroll number. The lottery is run 4
times a year. However, she has a problem in that when a member rings up to
register sometimes neither her nor the member is able to tell if they have
registered before. She wants to ensure that it is not possible to enter a
person twice.

So, what would be ideal, is when she has entered the payroll number if there
is no pre-existing entry Excel will allow her to proceed to the next field,
if there is this will be flagged up and further entry would not be
permitted.

I would be grateful if anyone could point me in the direction of a solution.

Best wishes,

Ted


  #2   Report Post  
David McRitchie
 
Posts: n/a
Default

Hi Ted,

See Preventing Duplicates On Entry
http://www.cpearson.com/excel/NoDupEntry.htm

=COUNTIF($A$1:$A$50,A1)=1
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm


"Ted Rogers" wrote in message ...
A colleague runs the car-park lottery for our organisation. She uses an
Excel spreadsheet witha round 1500 entries. The sheet identifies each staff
member by means of their exclusive payroll number. The lottery is run 4
times a year. However, she has a problem in that when a member rings up to
register sometimes neither her nor the member is able to tell if they have
registered before. She wants to ensure that it is not possible to enter a
person twice.

So, what would be ideal, is when she has entered the payroll number if there
is no pre-existing entry Excel will allow her to proceed to the next field,
if there is this will be flagged up and further entry would not be
permitted.

I would be grateful if anyone could point me in the direction of a solution.

Best wishes,

Ted




  #3   Report Post  
Ted Rogers
 
Posts: n/a
Default


"David McRitchie" wrote in message
...
Hi Ted,

See Preventing Duplicates On Entry
http://www.cpearson.com/excel/NoDupEntry.htm

=COUNTIF($A$1:$A$50,A1)=1
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

Many thanks for that - this seems to work if changing a value in a cell but
does not seem to work if adding a value ina blank cell (within the range in
the formula)

Unless I have missed something

Ted


  #4   Report Post  
David McRitchie
 
Posts: n/a
Default

Hi Ted,
try to avoid pasting values that destroys validatation, and
formatting including conditional cell formatting.

You can use this instead, so if you try to change a value above a
cell with the same value you will get your validation error.

Select all of column A with cell A1 as the activecell
=COUNTIF($A:$A,A1)=1


"Ted Rogers" wrote
Many thanks for that - this seems to work if changing a value in a cell but
does not seem to work if adding a value ina blank cell (within the range in
the formula)

Unless I have missed something

Ted





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
Data Validation Kosta S Excel Worksheet Functions 2 July 17th 05 11:38 PM
Data validation, cell protection or other method? KG Excel Discussion (Misc queries) 5 June 17th 05 05:22 AM
Another Exciting Data Table Question!!!! xinekite Charts and Charting in Excel 1 May 29th 05 01:22 PM
data validation gbeard Excel Worksheet Functions 2 May 2nd 05 09:57 PM
DATA VALIDATION IN REVERSE #2 (FOR JULIE D.) Wayne Excel Discussion (Misc queries) 0 March 22nd 05 06:24 AM


All times are GMT +1. The time now is 09:32 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"