+ Reply to Thread
Results 1 to 5 of 5

Conditional Formation based on Month

  1. #1
    Registered User
    Join Date
    04-30-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    24

    Conditional Formation based on Month

    I have a field where the month is written as text
    I would like to highlight row whose month column has passed

    My conditional formating code is:

    Please Login or Register  to view this content.
    The problem is that it highlight all the blank cell because it sees them as 01.
    Any ideas how I could get it to highlight only those who month has passed while leaving those that are blank unformated.

    Thank you for your help.
    Last edited by GDS; 05-04-2009 at 05:09 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditional Formation based on Month

    Please Login or Register  to view this content.
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-30-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Conditional Formation based on Month

    ChemistB - thank you, I had to change the coma to a ;, and then it worked.
    Last edited by GDS; 05-04-2009 at 05:08 PM.

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Conditional Formation based on Month

    Let's clean up the formula. This should be in your condition box:

    =AND(ISTEXT(F3),MONTH(1&$F3)<MONTH(TODAY()))

    since your month is text, you need to check for text (ISTEXT) and not for numbers. Also, there was a typo in your formula (MMONTH)

    The above formula worked in a spreadsheet on my computer

    cheers

  5. #5
    Registered User
    Join Date
    04-30-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Conditional Formation based on Month

    Teylyn - I tried yours and it works great too. I'm actually glad you posted because I had played around with a few cell and changed them to numbers by accident.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1