M
mlv
Excel 2002 SP3
I have a cell in a worksheet that uses a formula to automatically insert a
date. The cell is formatted 'Date 14/03/2001'
Formula:
=IF(DATE(YEAR(Setup!E8)+1,MONTH(Setup!E8),DAY(Setup!E8)-1)>DATE(YEAR('Month
12-ML'!N3),MONTH('Month
12-ML'!N3)+1,0),DATE(YEAR(Setup!E8)+1,MONTH(Setup!E8),DAY(Setup!E8)-1),"")
When the formula criterion is not met, the formula will leave the cell empty
(by entering "").
In exceptional circumstances, the user is allowed to overwrite the formula
and directly enter a date.
Because the user is allowed to enter a date manually, I set Data Validation
to 'Date' and ticked 'Ignore Blank', to stop erroneous data being entered.
Unfortunately Data Validation does not see "" as a blank, and consequently
my formula fails when it tries to enter "".
Is there a way around this, other than by disabling Data Validation? Can I
create a Custom Data Validation that will allow both a date and ""?
What exactly is a 'Blank' entry anyway, and can a formula be made to enter a
true blank, rather than ""?
Thanks
I have a cell in a worksheet that uses a formula to automatically insert a
date. The cell is formatted 'Date 14/03/2001'
Formula:
=IF(DATE(YEAR(Setup!E8)+1,MONTH(Setup!E8),DAY(Setup!E8)-1)>DATE(YEAR('Month
12-ML'!N3),MONTH('Month
12-ML'!N3)+1,0),DATE(YEAR(Setup!E8)+1,MONTH(Setup!E8),DAY(Setup!E8)-1),"")
When the formula criterion is not met, the formula will leave the cell empty
(by entering "").
In exceptional circumstances, the user is allowed to overwrite the formula
and directly enter a date.
Because the user is allowed to enter a date manually, I set Data Validation
to 'Date' and ticked 'Ignore Blank', to stop erroneous data being entered.
Unfortunately Data Validation does not see "" as a blank, and consequently
my formula fails when it tries to enter "".
Is there a way around this, other than by disabling Data Validation? Can I
create a Custom Data Validation that will allow both a date and ""?
What exactly is a 'Blank' entry anyway, and can a formula be made to enter a
true blank, rather than ""?
Thanks