Conditional Format (month and year) = Today()

S

Scott

I have a calendar in excel that I want to change the format of the header for
each month, when that month is the current month.

Right now my conditional format formula is =Q31=MONTH(TODAY())

The problem is that as long as I am in (for example) November of any year
the condition reads true. It does not distinguish between 11/2005, 11/2006,
11/2007.

I'm stuck at this point... thinking the conditional format formula should
look like:
=q31=AND(MONTH(TODAY()),YEAR(TODAY()))

But that's not working.

Can you help? Thanks in advance.

Scott
 
M

Max

Try, as the cond format formula:

=DATE(YEAR(Q31),MONTH(Q31),1)=DATE(YEAR(TODAY()),MONTH(TODAY()),1)
 
S

Scott

Worked like a charm.

Thanks!

Max said:
Try, as the cond format formula:

=DATE(YEAR(Q31),MONTH(Q31),1)=DATE(YEAR(TODAY()),MONTH(TODAY()),1)

--
Rgds
Max
xl 97
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top