Data Validation - Date and Text String

tlc53

Active Member
Joined
Jul 26, 2018
Messages
399
Hi there,

I have Data Validation set on my date entry cells so only a valid date can be entered. The formula I am using is =AND(ISNUMBER(E158),LEFT(CELL("format",E158),1)="D") and this works fine.

However, when no date has yet been entered, I would like the cell to read "Enter Date". I tried formatting the formula to =AND(ISNUMBER(E158),LEFT(CELL("format",E158),1)="D")&ISTEXT("Enter Date") but this hasn't worked.

Any ideas how I can make the cell accept text string "Enter Date" and also only valid date?

Thank you!
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi,

A couple of different ways you can do this:

1. Just enter a Custom "Input Message" (i.e. Enter Date), so whenever E158 is selected the message will pop up.

2. Input "Enter Date" in E158 Before you apply your DV using your Original formula.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,022
Messages
6,122,716
Members
449,093
Latest member
Mnur

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