Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Please help! Data Validation is Suddenly Acting Strangely

My program, which has eight worksheets, was working just fine...until
today. In column A of worksheet 1 (Roster), there is a list of
employee's numbers, and in column B of that worksheet, there is a list
of employee's names. The program is one with which I schedule
workers, Mon. through Fri., by typing their employee numbers into the
left-hand column of each day of the week.

The other seven worksheets of my program are for each day of the week
(Mon, Tue, etc.). In column A of those worksheets, I type in an
employee number, and in column C I have a LOOKUP formula [for example
=VLOOKUP(A5,(Roster!A:B),2,FALSE] (brackets not included in that
formula) in place, which tells Excel to go to the first worksheet
(Roster), look up the employee number that was just typed in, then
return the name found. That part seems to be working fine.

However, the data validation seems to have gone crazy on me. I can't
schedule the same worker twice in the same day, of course, so I don't
want to be able to have the same employee's number or name twice in
column C (where the names are returned). To prevent me from making
that mistake, I have placed data validation in each cell of that
column, using this in the "Formula" box: =COUNTIF($C$5:$C$27,C5)=1
In the "Style" box, I chose "Stop," and in the "Message" box, I typed
"You have already scheduled him/her!" It all seems to be working fine,
until I get down toward the bottom of the column where I am typing in
their numbers. It will stop me from typing in an employee's number,
giving me the warning "You have already scheduled him/her!," even
though I really haven't. I have gone back up and down the column,
carefully looking to see if I have already used that person's number,
but I really haven't. Then I went back to the Roster worksheet, to see
if there are, mistakenly, two people with the same employee number,
and there aren't. I checked the formulas, including their ranges, and
everything seems to be correct.

Does anybody have an idea of what might be going on, here?

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
Comments in a shared Workbook acting strangely J Streger Excel Discussion (Misc queries) 0 June 7th 07 02:28 PM
Comments in a shared Workbook acting strangely J Streger Excel Discussion (Misc queries) 1 June 7th 07 12:14 AM
Excel acting strangely William[_9_] Excel Programming 1 April 27th 07 02:53 AM
Conditional formatting acting strangely Potoroo Excel Discussion (Misc queries) 1 August 3rd 06 06:36 AM
Application.Inputbox acting strangely Alan Webb Excel Programming 0 July 15th 04 09:21 AM


All times are GMT +1. The time now is 11:56 AM.

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"