+ Reply to Thread
Results 1 to 10 of 10

How to conditionally format cells within 14 days of a specific date

  1. #1
    Registered User
    Join Date
    11-07-2017
    Location
    Los Angeles, CA
    MS-Off Ver
    2016
    Posts
    5

    How to conditionally format cells within 14 days of a specific date

    Hi all,

    I am working on a personnel tracker. Each sheet in the workbook is a different week ending date. I have a cell at the top (B1) that contains the week ending date. I would like the projected end date column to highlight if anyone in that list has an outdate within 14 days of the week ending date. I don't want it to highlight if the date has passed, but if anyone's outdate is within 14 days of the week ending date, I would like it to highlight.

    I am sure it isn't that difficult, but I am not figuring this one out. Hope this makes sense.


    Thank you,
    David

  2. #2
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Perth Western Australia
    MS-Off Ver
    Office 365
    Posts
    257

    Re: How to conditionally format cells within 14 days of a specific date

    Hi
    Can you please upload a sample of the file. It will make it easier to resolve your issue.
    Cheers

  3. #3
    Registered User
    Join Date
    11-07-2017
    Location
    Los Angeles, CA
    MS-Off Ver
    2016
    Posts
    5

    Re: How to conditionally format cells within 14 days of a specific date

    Hi FoxSeaLady,

    Thanks for the help! The forum won't let me attach the sample file for some reason, so here is a link to download it:

    https://www.dropbox.com/s/uckc5gtcay...cker.xlsx?dl=1


    For this example, the column I would want to apply the conditional formatting to would be 'D' (the anticipated wrap dates). At the top, in the red cell, I would enter the week ending date (in this case, 11/4/17). From there, any ANTICIPATED WRAP DATE that is within 14 calendar days (in this case, it would be Ed and Cindy) I would want to highlight in red. If the wrap date is further than 14 days out (in this case, Craig and Mary), it would remain unformatted and if the wrap date is in the past (in this case Bill), it would either remain unformatted, or I would have the cell turn a dark grey to show that the person is no longer working.

    Hope this makes sense.

    Thank you!!
    -David

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: How to conditionally format cells within 14 days of a specific date

    Hi chorchie. Welcome to the forum.

    Many of us are reluctant to upload from 3rd party sharing sites. I am one of them.

    It sounds like you might be attempting to use the paperclip icon. That hasn't worked for some time.

    Try this method:


    To attach a file to your post,
    • be sure to desensitize the data
    • click “Go Advanced” (next to Post Quick Reply – bottom right),
    • scroll down until you see “Manage Attachments”, click that,
    • click “Browse”.
    • select your file(s)
    • click “Upload”
    • click “Close window”
    • click “Submit Reply”

    The file name will appear at the bottom of your reply.
    Dave

  5. #5
    Registered User
    Join Date
    11-07-2017
    Location
    Los Angeles, CA
    MS-Off Ver
    2016
    Posts
    5

    Re: How to conditionally format cells within 14 days of a specific date

    Hi FlameRetired

    Yeah, I was thinking about that as I was posting the link. Thank you for the instructions on attaching. I have attached the file here.

    Thank you again for all your help!!

    -David
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: How to conditionally format cells within 14 days of a specific date

    Try

    CF rule:

    =AND($D3>TODAY(),TODAY()+14>$D3)
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-07-2017
    Location
    Los Angeles, CA
    MS-Off Ver
    2016
    Posts
    5

    Re: How to conditionally format cells within 14 days of a specific date

    Thank you, JohnTopley. The only problem, though, is that the CF rule you suggest uses TODAY's date to determine the 14 day window. I need it to use the date in B1 to determine the 14 day window.

    Thanks,
    David

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: How to conditionally format cells within 14 days of a specific date

    Just change TODAY() in the formula to B1

    =AND($D3>$b$1,$B$1+14>$D3)

  9. #9
    Registered User
    Join Date
    11-07-2017
    Location
    Los Angeles, CA
    MS-Off Ver
    2016
    Posts
    5

    Re: How to conditionally format cells within 14 days of a specific date

    Thank you, JohnTopley! That worked perfectly. I appreciate everyone's help.

    -David

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: How to conditionally format cells within 14 days of a specific date

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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: 1
    Last Post: 01-04-2017, 06:00 PM
  2. Replies: 1
    Last Post: 01-04-2017, 05:59 PM
  3. [SOLVED] How to conditionally format cells if other cells contain specific text
    By ImranBhatti in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2016, 02:52 PM
  4. [SOLVED] Conditionally Format to highlight 16 days on 12 days off schedule
    By cadamb in forum Excel General
    Replies: 10
    Last Post: 03-05-2015, 01:41 PM
  5. conditionally format entire row for dates 15 days past today's date?
    By chalter in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-11-2014, 11:46 AM
  6. [SOLVED] Conditionally format cell based on dates within a number of days apart
    By mjy58 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2013, 06:01 PM
  7. Replies: 6
    Last Post: 02-16-2013, 05:12 AM

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