+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Excel 2007 - Conditional Formatting entire row based on date in a cell

  1. #1
    Registered User
    Join Date
    09-29-2011
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    10

    Smile Excel 2007 - Conditional Formatting entire row based on date in a cell

    Hi all,

    For whatever reason, I cannot produce a funtional formula to do the following:
    • I have a set of dates running downcolumn G, spanning within a 3 month period (they are delivery dates).
    • I would like to conditionally format so that the entire row is highlighted one colour if the date is 3weeks away, another colour if 2 weeks away, and yet another colour if a week away.
    Please help!

    Thanks

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Excel 2007 - Conditional Formatting entire row based on date in a cell

    Select the first range of data containing a date, but don't do the whole row, it wastes memory and artificially bloats your book, just select a relevant record. Launch conditional formatting, then choose new rule, use a formula:
    Please Login or Register  to view this content.
    this will give you dates within a week. Make it +14 for 2 weeks, etc.
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  3. #3
    Registered User
    Join Date
    09-29-2011
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Excel 2007 - Conditional Formatting entire row based on date in a cell

    Hi Thomas,

    Thank you.
    I should also note, some cells in column G contain text rather than numbers.
    When i enter in the formula you specify below, it highlights all the text as well.

    How can this be overcome?

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,291

    Re: Excel 2007 - Conditional Formatting entire row based on date in a cell

    You can use:
    =And(IsNumber($G1),TODAY()+7<=$G1)
    Remember what the dormouse said
    Feed your head

  5. #5
    Registered User
    Join Date
    09-29-2011
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Excel 2007 - Conditional Formatting entire row based on date in a cell

    Thanks.

    This seems to highlight more cells than actually required.
    Does it pick up any dates that are greater than or equal to 7?

    I am trying to flag deliveries that are 1 week out, 2 weeks out and 3 weeks out all consecutively and I want the entire row to be highlighted a different colour based on which of the aforementioned delivery weeks they fall under.

  6. #6
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Thumbs up Re: Excel 2007 - Conditional Formatting entire row based on date in a cell

    Hello, try this out (seemed easier to attach the example than to explain the rules in detail)

    But, i made the following rules:

    Due today / within 1 week / within 2 weeks / within 3 weeks / greater than 3 weeks out...

    seem to work ok.

    ----

    if you like / dislike my post please rate it by clicking on the "reputation" scales at the upper right hand corner of this post
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-29-2011
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Excel 2007 - Conditional Formatting entire row based on date in a cell

    Thanks a bunch! This works.

+ 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