+ Reply to Thread
Results 1 to 3 of 3

days calculation with multiple if statements

  1. #1
    Registered User
    Join Date
    10-31-2017
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    2

    days calculation with multiple if statements

    DATA IS

    A B C D E
    1 start date start time end date late start DAYS USED
    2 10/7/17 11:47 10/18/17 NO
    3 10/9/17 13:34 10/25/17 YES
    4 10/9/17 17:04 10/28/17 YES
    5 10/10/17 9:52 10/28/17 NO
    6 10/19/17 9:21 10/30/17 NO
    7 10/14/17 9:50 10/28/17 NO
    8 10/20/17 12:05 YES
    9 10/20/17 12:00 YES

    Column D Formula reads =IF(B2 < TIME(12,0,0),"NO",IF(B2 > =TIME(12,0,0),"YES","0"))

    Column E currently reads =IF(D2="NO",DAYS(C2,A2)+1, DAYS(C2,A2))

    C8 and C9 do not have a date because the end time has not been reached.

    I need some help with a change to formula in E that specifies if the C cell is empty then treat it as if it was today and still follow the current formula written in E that looks to D for "NO".

    Thanks in advance

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: days calculation with multiple if statements

    Try this formula for E2 copied down

    =IF(D2="NO",1,0)+DAYS(IF(C2="",TODAY(),C2),A2)
    Audere est facere

  3. #3
    Registered User
    Join Date
    10-31-2017
    Location
    arkansas
    MS-Off Ver
    2016
    Posts
    2

    Re: days calculation with multiple if statements

    Quote Originally Posted by daddylonglegs View Post
    Try this formula for E2 copied down

    =IF(D2="NO",1,0)+DAYS(IF(C2="",TODAY(),C2),A2)
    perfect. Thank you!

+ 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. Network Days & IF Statements
    By bloodmilksky in forum Excel General
    Replies: 1
    Last Post: 09-23-2016, 08:15 AM
  2. [SOLVED] Need help with time calculation that MAY span multiple days
    By greatscott in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-22-2014, 04:25 PM
  3. [SOLVED] Calculation of days between days and time
    By theprincesunil in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-27-2014, 03:09 PM
  4. Network Days, IF statements, Updates
    By mplange in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-17-2013, 04:38 AM
  5. Replies: 12
    Last Post: 05-15-2009, 08:38 AM
  6. Varying if statements based on days
    By g-c in forum Excel General
    Replies: 2
    Last Post: 07-20-2007, 10:24 PM
  7. [SOLVED] Please Help With Days Elapsed And Days Remaining Calculation
    By Scoooter in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-14-2006, 12:15 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