+ Reply to Thread
Results 1 to 4 of 4

conditional format if date in field is within the next 6 months

  1. #1
    Registered User
    Join Date
    05-07-2007
    Location
    England
    MS-Off Ver
    2010
    Posts
    47

    conditional format if date in field is within the next 6 months

    I wish to have a field in a column change its background colour to red only if the date in the field due in the next 6 months.

    the format the date is in is: dd/mm/yyyy

    Can anyone advise how I should use to do this.

    I have looked at some of the conditional date occuring formats and just can not see one that allows anything more than a month.
    Last edited by Jason_C; 11-03-2010 at 05:24 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: conditional format if date in field is within the next 6 months

    Assuming the DUE field is column M, use this conditional formatting on that column:

    Condition1: Formula Is: =$M1 - TODAY() < 183
    Format... Pattern tab: Red
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    12-06-2012
    Location
    Southern California
    MS-Off Ver
    Excel 2003 and Excel 2007
    Posts
    3

    Re: conditional format if date in field is within the next 6 months

    That worked well, except that the other cells that are empty in that column are now also yellow-filled background like the fill I used to highlight the dated cells (in addition to the red font). Is there some way to make the empty cells, or the ones that don't have dates in them, but just text, like the title bar, not turn red font, and yellow-filled?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: conditional format if date in field is within the next 6 months

    Maybe add a second test to insure M1 isn't blank:

    Condition1: Formula Is: =AND($M1>0, $M1 - TODAY() < 183)

+ 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