validate date entered
Select cell A1
Goto the menu DataValidation
Allow: Custom
Formula: =WEEKDAY(A1)=1
You can use custom input or error alert messages if you want.
OK out
--
Biff
Microsoft Excel MVP
"jatman" wrote in message
...
i want to validate the date entered as a Sunday - if the user enters a date
that is not a Sunday, the user cannot continue.
cell A1 - user enters the date (the cell is formatted as custom
yyyy-mm-dd)
cell A2 - text(a1,"dddd") returns back the day of the week
is there a way to validate the value as a Sunday date.
jat
|