+ Reply to Thread
Results 1 to 6 of 6

Excel Formula that only returns less than 5 working days from today()

  1. #1
    Registered User
    Join Date
    03-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    28

    Excel Formula that only returns less than 5 working days from today()

    I know this should be simple but cant figure out how to have a cell return "Yes" or "No" when the cell selected is less than 5 days from todays date. What I keep getting is anything within 5 days including things after todays date or anything greater than 5 days..I need it to only return the responses if it is within the 5 day time frame

    =IF((AND($A3>TODAY(), $A3-TODAY()<=5)),"Yes","No")

    thanks
    Last edited by williamthomp; 09-05-2018 at 10:21 AM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Excel Formula that only returns less than 5 working days from today()

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

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Excel Formula that only returns less than 5 working days from today()

    how about ...
    =IF(TODAY()-5<A3,"yes","no")
    or, since that will return yes for greater than today this will leave a blank for that...
    =IF(A3>TODAY(),"",IF(TODAY()-5<A3,"yes","no"))
    Last edited by Sam Capricci; 09-05-2018 at 10:37 AM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    03-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Excel Formula that only returns less than 5 working days from today()

    Yes..thanks that works..How do I tweek it where it also allows for today also be a "Yes"

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Excel Formula that only returns less than 5 working days from today()

    which post are you referring to? Mine shows today as yes.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Excel Formula that only returns less than 5 working days from today()

    If you're referring to my formula
    =IF(AND(A5 >TODAY()-5,A5 <= TODAY()),"Yes", "no")

    and thanks for the rep

+ 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. Formula for Conditional formatting: today plus 5 working days
    By mkosa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-14-2016, 01:52 AM
  2. [SOLVED] Count working days and toggle include today or not, taking into account holidays
    By D.Lovell in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-14-2015, 03:25 PM
  3. [SOLVED] Conditional formatting - highlight cell if it's empty 2 working days before today
    By uhtfgy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2013, 06:20 AM
  4. Replies: 11
    Last Post: 06-01-2012, 08:47 AM
  5. Excel 2007 : today()-2 working days, in with other text
    By dancing-shadow in forum Excel General
    Replies: 6
    Last Post: 05-12-2011, 05:05 AM
  6. 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
  7. Add 4 working days to =Today()
    By piranhagirl in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-23-2005, 05:22 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