Data Validation Question

SDowse

Board Regular
Joined
Sep 23, 2009
Messages
109
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.
 

Some videos you may like

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

T. Valko

Well-known Member
Joined
May 9, 2009
Messages
16,623
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)
 

Watch MrExcel Video

Forum statistics

Threads
1,123,330
Messages
5,601,000
Members
414,419
Latest member
JRDunya

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
Top