Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Conditional Formatting by Date (Month)

3 views
Skip to first unread message

CP

unread,
Sep 2, 2009, 11:11:02 AM9/2/09
to
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?

Rick Rothstein

unread,
Sep 2, 2009, 11:28:35 AM9/2/09
to
I guess this Conditional Format formula will do what you want...

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

--
Rick (MVP - Excel)


"CP" <C...@discussions.microsoft.com> wrote in message
news:56D32F62-95A2-4638...@microsoft.com...

Luke M

unread,
Sep 2, 2009, 11:31:02 AM9/2/09
to
Make sure the Analysis ToolPak Add-in is activated.

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

Luke M
*Remember to click "yes" if this post helped you!*

Jacob Skaria

unread,
Sep 2, 2009, 11:32:22 AM9/2/09
to
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
---------------
Jacob Skaria

CP

unread,
Sep 2, 2009, 11:57:15 AM9/2/09
to
Ricks answer worked - was more likely my explanation was, thank you

CP

unread,
Sep 2, 2009, 11:59:09 AM9/2/09
to
I already have the answer now thank you.

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

Luke M

unread,
Sep 2, 2009, 12:13:13 PM9/2/09
to
Under Tools - Add-ins, you'll see a variety of add-ins that you can choose to
activate in XL.

T. Valko

unread,
Sep 2, 2009, 12:46:25 PM9/2/09
to
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

--
Biff
Microsoft Excel MVP


"Luke M" <Lu...@discussions.microsoft.com> wrote in message
news:A935D6F2-F41E-408A...@microsoft.com...

0 new messages