Dependent date validation

numb7

New Member
Joined
Jun 25, 2013
Messages
2
Hello Smartest Excellers in the World,

I am trying to use data validation to restrict date values entered into a cell. I am not able to use macros to accomplish this because the form that I am creating will be distributed to many users (who are not likely to have macros enabled).

Essentially, I am trying to restrict values in this way:
IF (A1="future",[allow values greater than today], IF (A1="past",[allow values less than today], [allow whatever]))

I have attempted to use the following formula as a Custom restriction in Excel's Data Validation tool:
=if($d5="future",>today(),if($d5="retroactive",<today(),""))

Excel tells me that this is not a valid formula. Ideally, I do not want to create name ranges of dynamic dates and provide a drop down list to users; I want the users to be able to type a date and be stopped if the date does not meet my criteria.

Any thoughts on how I can accomplish this are greatly appreciated.</today(),""))
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Data Validation setting:

Allow: Date
Data: Between
Start Date: =IF(A1="Future",TODAY(),0)
End Date: =IF(A1="Past",TODAY(),99999)
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

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