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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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,215,221
Messages
6,123,701
Members
449,117
Latest member
Aaagu

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