conditional formatting highlight the cell today's date

T

tegger

The range("B2:H2") contains dates.

Can I use conditional formatting to highlight the cell which contains today'
s date?



thanks,

tegger
 
G

GB

Yes - use conditional formatting.

Left box - select Cell value is
Middle box - select equal to
Right box - enter = Today()

Then select your format

GB
 
T

Tom Ogilvy

You could have a time value as well in the cell.

If you format the cell as general, does it contain an integer like 37910
or does it contain a decimal as well such as 37910.25

The test described tests if it contains 37910 and would fail if it contained
37910.25

37910 is the date serial number stored for Oct 16, 2003

It is like testing if
=Today()=Now()

They would only be equal at midnight.
 

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