More than one data validation in the same cell.

mrin74

New Member
Joined
Apr 9, 2014
Messages
22
I have got two sheets, "Shifts" and "Holiday Entry"
I am looking for 3 restrictions in the "Holiday Entry" sheet:

On Holiday Entry Sheet:
Column A when I type "Badge" number and using vlookup it fills B:G except D (where I type the date).

Restriction 1:
If I type a same date for the same staff, I want a error messege "YOU HAVE ALREADY BOOKED THIS DATE".

Restriction 2:
If I type a date and staff is not contracted on that day, I want a error messege "YOU ARE NOT CONTRACTED ON THIS DAY". Please see the shift pattern in the sheet "Shifts"

Restriction 3:
All the dates I will type will be restricted between a range (i.e. 01/01/2020 to 31/12/2020). Any date I type outside this range would give me a error messege "DATE IS OUTSIDE THE HOLIDAY YEAR"

Sorry I coudn't upload my worksheet!!
 

Attachments

  • Shifts.PNG
    Shifts.PNG
    26 KB · Views: 6
  • Holiday Entry.PNG
    Holiday Entry.PNG
    28.5 KB · Views: 5

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Cross posted Multiple data validation in one cell.

While we do allow Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,215,614
Messages
6,125,848
Members
449,266
Latest member
davinroach

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top