+ Reply to Thread
Results 1 to 5 of 5

Highlighting date cells based on day of viewing file

  1. #1
    Registered User
    Join Date
    12-14-2021
    Location
    Manchester, England
    MS-Off Ver
    2019
    Posts
    31

    Highlighting date cells based on day of viewing file

    Hi,

    I have a spreadsheet with a column F called 'Completion Date' and I would like to highlight the dates in that column Red/Amber/Green depending on the day that I open the file i.e Today

    For example, Red - Passed dates and dates coming in next 2 weeks, Amber - Coming up in next 2-4 weeks, Green is up to 4-8 weeks in future.

    For example today is 03/05/2022, so if the date in column F is 18/05/2022, then that cell would be highlighted Amber as it is 15 days in the future.

    If I open the file Next week (10/05/2022), then the date 18/05/2022 in Column F would auto be highlighted Red because it is less than 2 weeks.


    So is there a way to auto validate them depending on the day that you open the file?

    Thanks!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Highlighting date cells based on day of viewing file

    select the range in column F

    create the following:

    for green:
    Please Login or Register  to view this content.
    for amber:
    Please Login or Register  to view this content.
    for red:
    Please Login or Register  to view this content.
    arrange them with green at the top, followed by amber, then red last
    Attached Files Attached Files
    As a gesture off appreciation, you can click * Add Reputation at the foot of any of the posts of members who helped you reach a solution.

    And finally, was your problem solved? if so, please click Thread Tools above the first post of your enquiry, then select [Solved]

  3. #3
    Registered User
    Join Date
    12-14-2021
    Location
    Manchester, England
    MS-Off Ver
    2019
    Posts
    31
    Quote Originally Posted by janmorris View Post
    select the range in column F

    create the following:

    for green:
    Please Login or Register  to view this content.
    for amber:
    Please Login or Register  to view this content.
    for red:
    Please Login or Register  to view this content.
    arrange them with green at the top, followed by amber, then red last
    Will give it a try then report back.. thanks!

  4. #4
    Registered User
    Join Date
    12-14-2021
    Location
    Manchester, England
    MS-Off Ver
    2019
    Posts
    31

    Re: Highlighting date cells based on day of viewing file

    Quote Originally Posted by janmorris View Post
    select the range in column F

    create the following:

    for green:
    Please Login or Register  to view this content.
    for amber:
    Please Login or Register  to view this content.
    for red:
    Please Login or Register  to view this content.
    arrange them with green at the top, followed by amber, then red last
    Worked like a charm.. many thanks!

  5. #5
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Highlighting date cells based on day of viewing file

    thats great news!

    thank you for the reps too, much appreciated!

    if that takes care of your enquiry, please take a moment to click "Thread Tools" at the top of your initial post, and then select "Solved".

+ 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. Highlighting duplicates based on the date it's under.
    By mutzie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2019, 12:24 AM
  2. Viewing a PDF File within excel based on a cell value
    By murphyd6 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-17-2017, 10:40 AM
  3. Replies: 1
    Last Post: 08-07-2016, 11:13 PM
  4. Highlighting row based on the date
    By mamuka12 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2013, 02:22 PM
  5. Highlighting values based on name and date
    By apex_chio in forum Excel General
    Replies: 2
    Last Post: 02-20-2013, 01:21 AM
  6. Highlighting a row based on todays date
    By jez1890 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-14-2012, 05:12 AM
  7. Highlighting cells based on today's date
    By peteynub in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-23-2008, 10:20 AM

Tags for this Thread

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