what does it mean the 'AND' at the beginning of the past condition?
If a cell is empty it will evaluate as month number 1 which could lead to
the format being applied to empty cells. The AND tests that the cells are
not empty so that the formatting is not applied to empty cells.
--
Biff
Microsoft Excel MVP
Try this...
Assume the dates are in the range A1:A10
Select the range A1:A10
Goto the menu Format>Conditional Formatting
Condition 1 (present month)
Formula Is: =MONTH(A1)=MONTH(NOW())
Click the Format button
Select the desired style(s)
OK
Click the Add button
Condition 2 (future months)
Formula Is: =MONTH(A1)>MONTH(NOW())
Click the Format button
Select the desired style(s)
OK
Click the Add button
Condition 3 (past months)
Formula Is: =AND(A1<>"",MONTH(A1)<MONTH(NOW()))
Click the Format button
Select the desired style(s)
OK out
--
Biff
Microsoft Excel MVP
- Show quoted text -
Hi Biff, it works only for 1 year so, i changed it a bit and its ok
(until now i never used the 'Formula is ' option...)
what does it mean the 'AND' at the beginning of the past condition?
thank you
Negda