Conditional Formatting by Date (Month)

C

CP

I want to format a Date Column

If Column F is less than any date from today + 1month

Meaning today being 2/9/09 anything in F that is less than 31/10/09

Any guidance please?
 
R

Rick Rothstein

I guess this Conditional Format formula will do what you want...

=AND(F1<DATE(YEAR(NOW()),MONTH(NOW())+1,DAY(NOW())),F1<>"")
 
L

Luke M

Make sure the Analysis ToolPak Add-in is activated.

Assuming you're starting in F2
Format - Conditional Format.
Formula is:
=F2<=EOMONTH(TODAY(),1)
 
J

Jacob Skaria

Your example and query contradicts..If you mean today+1month try the below

=AND(F1>0,F1<DATE(YEAR(TODAY()),MONTH(TODAY())+1,DAY(TODAY())))

If this post helps click Yes
 
C

CP

I already have the answer now thank you.

*Analysis ToolPak Add-in* - what and where is this?
 
L

Luke M

Under Tools - Add-ins, you'll see a variety of add-ins that you can choose to
activate in XL.
 
T

T. Valko

That won't work in Excel versions 2003 and earlier. You can't directly use
functions that are in the ATP.

You'd have to use a defined name.

Insert>Name>Define
Name: TargetDate
Refers to: =EOMONTH(TODAY(),1)

Then, as the formatting formula:

=F2<=TargetDate
 

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