Conditional format and comparing dates

H

Hank

How do I do this on a report?
If the difference between date1 and date2 is greater than 42 days then date
1 should be bold, else nothing. date1 is the control cell in which I'm
trying to enter the formula but I'm coming up with nothing.
 
M

Marshall Barton

Hank said:
How do I do this on a report?
If the difference between date1 and date2 is greater than 42 days then date
1 should be bold, else nothing. date1 is the control cell in which I'm
trying to enter the formula but I'm coming up with nothing.


Try using the Expression Is" option with something like:

DateDiff("d", [date1], [date2]) > 42

Note that the [ ] are required.

You didn't say which date is the earlier date so you might
have to switch the 1 and 2.
 

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