In sheet "Employee List" I have employee numbers and first and last name followed by number of Vacation each employee has. Ex
On my Vacation sheet I have days for the whole year in column A to the right from column B-L of that I will enter the Employee number to assign them a vacation day. What I need is Data Validation or Macro that will prevent me from Entering the Employee number more than Vacation days. and if I do, Message me with "The employee exceed the number of Vacation days".
Ex. Using the table above the Sheet it should only allow me to enter Peters Employee number in Vacation sheet 3 times, Matt employee number 10 times, JOE employee number 20 times in so on, in the range B2-L636
any suggestion is greatly appreciated.
EMPLOYEE NUMBER | FIRST NAME | LAST NAME | VACATION DAYS |
---|---|---|---|
156631 | TOM | SMITH | 15 |
54263 | SARA | PARKER | 12 |
254264 | PETER | HAYES | 3 |
21458 | KIM | CLARK | 6 |
122354 | MATT | WADE | 10 |
32455 | LIZ | MORRIS | 20 |
35663 | JOHN | MILLER | 18 |
54531 | JENNY | PARKER | 17 |
325486 | JOE | PHILLIPS | 20 |
On my Vacation sheet I have days for the whole year in column A to the right from column B-L of that I will enter the Employee number to assign them a vacation day. What I need is Data Validation or Macro that will prevent me from Entering the Employee number more than Vacation days. and if I do, Message me with "The employee exceed the number of Vacation days".
Ex. Using the table above the Sheet it should only allow me to enter Peters Employee number in Vacation sheet 3 times, Matt employee number 10 times, JOE employee number 20 times in so on, in the range B2-L636
any suggestion is greatly appreciated.