+ Reply to Thread
Results 1 to 9 of 9

Conditional Formatting for any date within the following week

  1. #1
    Registered User
    Join Date
    03-18-2015
    Location
    Detroit
    MS-Off Ver
    2013
    Posts
    78

    Question Conditional Formatting for any date within the following week

    Hello,

    I need to be able to highlight an entire row light blue if the REQUIRED DATE cell in that row (in this case it's cell L8) falls anywhere within next week.
    So for today which is 6-17-19, any date entered between 6-24 thru 6-30 should trigger the row blue. Problem is I also need this to do this even if today's date is 6-21-19, this is why I can't just use the date+7 days thing.
    So no matter what date it is I need it to turn blue for any date within the following week.

    I tried to use the automatic CF function that you can pick under the Highlight Cells tab in the toolbar and it works great except in only turns the CELL blue not the entire row, even if I say it applies to the entire sheet.

    This sheets applies to service area is =$B$8:$V$15000.

    Thanks in advance.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Conditional Formatting for any date within the following week

    Assuming your dates are all in column L, then you need to use a formula for a rule, not one of the built-in automatic ones.

    This formula will do CF for the entire row with a date that is in the next week.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Apply to $B$8:$V$15000.
    Last edited by 6StringJazzer; 06-18-2019 at 12:17 PM. Reason: Removed extra = from formula
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    03-18-2015
    Location
    Detroit
    MS-Off Ver
    2013
    Posts
    78

    Re: Conditional Formatting for any date within the following week

    First of all thanks for the reply!

    I tried your formula with the same results. I'll try to clarify a little.

    If today is 6-18-19 and I type in 6-24-19 it should turn blue. If I type in 6-28-19 it should still be blue. But if I type in 7-1-19 (which is in the following calendar week) it should not turn anything. And that will change if today's date changes, If today's date is 6-21-19 everything will stay the same, next week will be 24th-28th. But if today's date is 6-28-19 the everything for 7-1-19-7-5-19 should be blue only.

    Also your formula threw an error when copied as-is. I assumed you put an extra = in there in this bit "$L8<==TODAY()" so I just took one out.
    Last edited by PitBoo; 06-18-2019 at 10:03 AM.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Conditional Formatting for any date within the following week

    Revised formula. It erroneously included the following Monday. Also thanks for noting the extra =.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-18-2015
    Location
    Detroit
    MS-Off Ver
    2013
    Posts
    78

    Re: Conditional Formatting for any date within the following week

    That revised formula is returning a "False" for everything that is due next week now (6-24 thu 6-28) now.

    It triggers "True" for anything for the week of 7-1, which is backwards.

    The "True" should be for any dates next week and "False" for anything after next week.

    Sorry this thing is such a pain, leave it to me to ask the weird questions.

  6. #6
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Conditional Formatting for any date within the following week

    @Jeff
    I think you deleted the < sign by accident as well. Should it not be this?
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    (I only looked at this quickly, so please tell me to butt out if I'm wrong and just causing confusion!)
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Conditional Formatting for any date within the following week

    Quote Originally Posted by Aardigspook View Post
    @Jeff
    I think you deleted the < sign by accident as well. Should it not be this?
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    (I only looked at this quickly, so please tell me to butt out if I'm wrong and just causing confusion!)
    Please butt in because you are absolutely correct. smack.gif

  8. #8
    Registered User
    Join Date
    03-18-2015
    Location
    Detroit
    MS-Off Ver
    2013
    Posts
    78

    Re: Conditional Formatting for any date within the following week

    That worked, thanks all!

  9. #9
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Conditional Formatting for any date within the following week

    Glad we could help and thanks for the rep.

    @Jeff, thanks for the rep too.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 02-15-2018, 11:54 PM
  2. Conditional Formatting for days of the week
    By bryanhope in forum Excel General
    Replies: 3
    Last Post: 06-19-2017, 03:38 PM
  3. Replies: 2
    Last Post: 10-03-2016, 08:35 AM
  4. [SOLVED] Highlight week number using Conditional formatting - shows incorrect week
    By spliffter in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 02-26-2016, 09:52 AM
  5. [SOLVED] Conditional Formatting to show week over week improvement/decline
    By erikw48 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-15-2015, 10:22 AM
  6. [SOLVED] Conditional Formatting for Day of Week
    By mdt175 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-13-2014, 08:21 PM
  7. Conditional Formatting Days of the Week
    By braydon16 in forum Excel General
    Replies: 3
    Last Post: 01-13-2011, 03:43 PM

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