+ Reply to Thread
Results 1 to 2 of 2

Calculation issue with time

  1. #1
    Registered User
    Join Date
    09-10-2007
    Posts
    6

    Calculation issue with time

    I have a calcualtion looking at the difference between 2 times. Everything works great of course unless the second time is after 23:59. As soon as it passes midnight lets say 00:30 I get a huge negative number such as -21.00 Now techically this is correct based of my first entered time. What I want to have happen is I have a departure time of 23:30 and arrival time of 00:30. I want this to give me a value of 1:00 as in one hour, not -23:00 as is 23 hours. I can swear I had this working fine. I posted the spreadsheet on internal work share and somebody entered times and it stopped working. What do I do here?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    =(B1-A1+IF(B1<A1,1,0)) where A1 contains start time and B1 end time....

    format cell as time 13:30
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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