+ Reply to Thread
Results 1 to 5 of 5

Using IF Function with date ranges from TODAY function

  1. #1
    Registered User
    Join Date
    04-23-2020
    Location
    England
    MS-Off Ver
    2016
    Posts
    7

    Using IF Function with date ranges from TODAY function

    Hi Everyone,

    I am new here and I hope someone can help me figure this out please.

    I am using IF to give certain answers depending on the input criteria which is prioritised set out in the following:

    1. IF H6 has a date in then I6 will return "Complete", If no date next step.

    2. IF G6 has a date in the past from TODAY it will return "Late"

    3. IF G6 has a date 7 days ahead of TODAY it will return "Imminent"

    4. IF G6 has a date that is over 7 days ahead of TODAY it will return "Scheduled"


    I have everything working apart from points 3 and 4 it seems to return one of the required answers but not both in the required format.

    I have attached an image, which also includes the formula I'm using, to make it easier to see what i am trying to achieve.

    Many thanks in advance.
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Using IF Function with date ranges from TODAY function

    IF(H6>0, "Complete", If(G6 < TODAY(), "Late" ,if(G6 < TODAY()+7 , "Imminent" , "Scheduled")))


    I just deleted a few words from your explaination. < may need to be <= I will leave that to you

  3. #3
    Registered User
    Join Date
    04-23-2020
    Location
    England
    MS-Off Ver
    2016
    Posts
    7

    Re: Using IF Function with date ranges from TODAY function

    Thank you davsth that has done the job for the correct wording.

    However, it now leaves "Late" if both date cells are blank. I try to use IF ISBLANK but then says I have too many arguments, have you got a solution for that?

    Thanks

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Using IF Function with date ranges from TODAY function

    As you never gave that as a scenario to cover in your question!

    Perhaps
    if(and(h6="",g6=""),"",IF(H6>0, "Complete", If(G6 < TODAY(), "Late" ,if(G6 < TODAY()+7 , "Imminent" , "Scheduled"))))

  5. #5
    Registered User
    Join Date
    04-23-2020
    Location
    England
    MS-Off Ver
    2016
    Posts
    7

    Re: Using IF Function with date ranges from TODAY function

    Apologies, as I had that bit working I missed it on the description.

    Thanks very much for your help though that works brilliantly.

+ 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: 10
    Last Post: 09-06-2023, 08:19 PM
  2. Replies: 4
    Last Post: 08-24-2016, 09:29 AM
  3. Find Today's Date function
    By qbrg in forum Excel General
    Replies: 3
    Last Post: 06-20-2012, 02:41 PM
  4. [SOLVED] SUMIF within date range as a function of today()'s date
    By irvine79 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-06-2006, 01:00 PM
  5. MAX figure within a date range as a function of today()'s date
    By irvine79 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-06-2006, 12:45 PM
  6. =TODAY() function to fix the date
    By starguy in forum Excel General
    Replies: 4
    Last Post: 07-14-2006, 09:18 AM
  7. Today() or Date() function help
    By julisimo in forum Excel General
    Replies: 8
    Last Post: 01-03-2005, 01:23 PM

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