Date value entered to cell

Dougie1

Board Regular
Joined
Jul 27, 2007
Messages
212
Hi all,

Using Excel 2007.

I would like to generate a warning if the date entered into cell A2 does not equal yesterday's date. I don't want to prevent that date being entered by any means, I would just like to be able to alert the inputter that they have not entered yesterday's date and ask if they wish to proceed with the date that they have entered - YES or NO.

I know I could use data validation to prevent any date but yesterday's being entered into A2, but as I said, I don't want to restrict input, I only want to alert.

Is this possible?

All help gratefully received.

TIA

D
 

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.
Hi

Use Data Validation and under the Error Alert tab choose Style:Information with an appropriate error message

George

Hi all,

Using Excel 2007.

I would like to generate a warning if the date entered into cell A2 does not equal yesterday's date. I don't want to prevent that date being entered by any means, I would just like to be able to alert the inputter that they have not entered yesterday's date and ask if they wish to proceed with the date that they have entered - YES or NO.

I know I could use data validation to prevent any date but yesterday's being entered into A2, but as I said, I don't want to restrict input, I only want to alert.

Is this possible?

All help gratefully received.

TIA

D
 
Upvote 0
Thanks GK039

Can you be more specific ?? i.e. how do I set the validation to generate a message but without restricting input ??

TIA
 
Last edited:
Upvote 0
Hi all,

I know I could use data validation to prevent any date but yesterday's being entered into A2, but as I said, I don't want to restrict input, I only want to alert.

D

If all you need is an alert but no restrictions, you could have an adjacent cell to the input cell test the entered amount, to test it's validity, with Conditional Formating, to either show or not.

e.g. =IF(A1>5,"Value to High","")
 
Upvote 0
You're welcome

1) Open Data Validation dialog box
2) In the settings tab in the allow list choose Date then in the Data dialog box choose equal to and in the last dialog box named Date: place the following formula

=today()-1

3) In the input message tab place a message indicating the kind of information that should be entered and
4) in the last tab Error Alert there is a drop down menu with 3 choices a)Stop b) Warning c) Information

Choose information and you will have what you want

Thanks GK039

Can you be more specific ??
 
Upvote 0
Thanks GK039 - but that will not allow any date rather than TODAY()-1 to be entered and that is not what I am after.
 
Upvote 0
Try it again
It does allow any value, even text. Make sure you have selected the Information style in the error tab

George
Thanks GK039 - but that will not allow any date rather than TODAY()-1 to be entered and that is not what I am after.
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,253
Members
452,900
Latest member
LisaGo

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