Data Validation Question

SDowse

Board Regular
Joined
Sep 23, 2009
Messages
120
Hi,

I have a spreadsheet that contains all sorts of information. The column I am interested in is U (range is currently U9:U100 although that may change as new rows are added) which contains date information. What I want to do is add data validation of some sort to the column to stop people being able to enter a date that is either a Saturday or Sunday (maybe a pop-up box or something as well??).

Any ideas if this can be done?

Many thanks in advance.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi,

I have a spreadsheet that contains all sorts of information. The column I am interested in is U (range is currently U9:U100 although that may change as new rows are added) which contains date information. What I want to do is add data validation of some sort to the column to stop people being able to enter a date that is either a Saturday or Sunday (maybe a pop-up box or something as well??).

Any ideas if this can be done?

Many thanks in advance.
You can use a formula like this as the data validation rule:

=AND(INT(U9)=U9,WEEKDAY(U9,2)<6)
 
Upvote 0

Forum statistics

Threads
1,214,981
Messages
6,122,565
Members
449,089
Latest member
Motoracer88

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