+ Reply to Thread
Results 1 to 4 of 4

Formula to signal approaching date?

  1. #1
    Registered User
    Join Date
    10-01-2013
    Location
    North Carolina
    MS-Off Ver
    Excel 2013
    Posts
    1

    Formula to signal approaching date?

    Hi all,
    I am far from an excel expert but have been flagged at my new job as needing to be the go to guy for our excel task trackers. One formula I have been trying to figure out but have no success is how to signal a cell that contains a date through conditional formatting, as in have it turn red, green, etc when a particular date is approaching. The formula I am trying to figure out would read narratively something like: "when the date in this cell is 10 days from today, it turns green. When it is 5 days from now it turns red." Would anyone have any suggestions?
    Essentially I have a spreadsheet that shows due dates for a bunch of tasks for a bunch of projects, and I need to formulate a way for the cells to turn color or some other visual cue as the due dates approach.
    Thanks in advance.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,029

    Re: Formula to signal approaching date?

    Look at conditional formatting

    http://www.techonthenet.com/excel/cells/index.php
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Formula to signal approaching date?

    Highlight the date cells - assume these are in column D starting from D2 downwards. Then click on Conditional Formatting | New Rule and choose Use a Formula from the bottom of the list. Put this formula in the dialogue box:

    =AND($D2<TODAY()-5,$D2>=TODAY()-10)

    Then click on the Format button | Fill tab and choose green, then OK your way out.

    Repeat for the other condition, but use this formula:

    =AND($D2<TODAY(),$D2>=TODAY()-5)

    and choose red for the background colour.

    Excel will automatically adjust the cell references to suit the cells that were selected beforehand.

    Hope this helps.

    Pete

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Formula to signal approaching date?

    welcome to the forum, benajah. i'm thinking in another direction, so follow Pete's method but use this formula if that's not what you want.
    green
    =AND($D2-TODAY()<=10,$D2-TODAY()>=6)

    red
    =AND($D2-TODAY()<=5,$D2-TODAY()>=1)

    it's always best to upload a sample excel file with different scenarios & manually highlight what you wish to see.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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. Automatic Email When Due Date Is Approaching
    By bhrynyk in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-23-2013, 07:42 AM
  2. fx formula trigger signal
    By Stews in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-18-2012, 12:52 PM
  3. Highlight when date is approaching
    By dazlia2 in forum Excel General
    Replies: 2
    Last Post: 02-28-2012, 03:04 PM
  4. Send email when deadline date is approaching
    By wales12345 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-15-2008, 07:00 AM
  5. Can I set up a signal in Excel to let me know when my due date is.
    By pandie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2006, 11:36 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