+ Reply to Thread
Results 1 to 3 of 3

Need a formula that highlights a cell if it is within the next 7 days (but not today)

  1. #1
    Forum Contributor
    Join Date
    02-18-2020
    Location
    Ottawa, ON
    MS-Off Ver
    Professional Plus 2010
    Posts
    139

    Red face Need a formula that highlights a cell if it is within the next 7 days (but not today)

    Hi there,

    I need a formula for my worksheet that will highlight certain cells if TODAY() occurs in the next 7 days. The catch is that I also do not want it to highlight if it IS TODAY().

    The formula I've been trying is:
    AND(A1<(TODAY()+7), A1>TODAY()

    But this formula does not work. Any help is greatly appreciated!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,303

    Re: Need a formula that highlights a cell if it is within the next 7 days (but not today)

    How about this?

    =AND(A1<(TODAY()+7), A1>=TODAY()+1)
    Last edited by AliGW; 02-20-2020 at 09:06 AM. Reason: Typo corrected.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,640

    Re: Need a formula that highlights a cell if it is within the next 7 days (but not today)

    =AND(A1<(TODAY()+7), A1>TODAY()) should do the trick
    If not post a sample sheet explaining what does not work and expected resuls

+ 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. [SOLVED] I need a formula to always calculate exactly 21 days from today's date.
    By phxfitness in forum Excel General
    Replies: 7
    Last Post: 06-26-2015, 07:00 PM
  2. [SOLVED] Formula to count days since, using today function?
    By Johnny247 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-11-2014, 03:27 PM
  3. [SOLVED] If Statement for today being more than (x) days from cell value.
    By Sc0tt1e in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-18-2013, 07:49 AM
  4. Select a cell in a row 30 days prior to today's row
    By jphalverson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2013, 10:34 AM
  5. [SOLVED] Formula for # of days since today, if blank or if cell filled in. Want in number format?
    By teenyjem in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-10-2012, 11:46 AM
  6. [SOLVED] A Formula to calculate expiration today +90 days out
    By JennK in forum Excel General
    Replies: 2
    Last Post: 03-30-2012, 06:03 PM
  7. formula to get date Today-1 (Only working days)
    By Chetan Chauhan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-02-2010, 07:14 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