+ Reply to Thread
Results 1 to 8 of 8

Day changes at 7:00 am?

  1. #1
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Day changes at 7:00 am?

    Hi all!

    How to make excel 2003 think that that day changes not in the midnight, but 7:00 am?
    Thanks!

    P.S. I don`t want to adjust my pc clock.

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

    Re: Day changes at 7:00 am?

    In what context?

  3. #3
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Day changes at 7:00 am?

    Where I am working we run 4 on 4 of shift system. One shift is 12 hours and it starts at 07:00. This is the point, where the date changes. In my project I have to do some time calculations (durations beetween tasks). But it is messed up with ########## (negative times or dates). I'm sure they not negative. Its just the system my company runs. So, I have to collate some data from paperwork and enter to my project. And if I find one task finished 20th May 22:30 and another started the same day 02:30 I want duration 4 hours, not ###########. Any ideas?

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,757

    Re: Day changes at 7:00 am?

    If you actually have times with dates then the date change shouldn't be relevant. If A2 has 20-May-2010 22:30 and B2 has 21-May-2010 02:30 then just subtract one form the other, i.e.

    =B2-A2

    and format result cell as [h]:mm

  5. #5
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Day changes at 7:00 am?

    No. Date is kept separately from times. I have only one date and two different times

  6. #6
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Day changes at 7:00 am?

    You could subtract 07:00 from the times before doing any calculations!

    But if you are saying that the 02:30 is entered as 20-May and the 22:30 as 20th of may, then it wont work in this case

    =(Time2+(time2 < timevalue("07:00"))-Time1

    should work
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


  7. #7
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Day changes at 7:00 am?

    or :-

    =mod(time2-time1,1)

  8. #8
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Day changes at 7:00 am?

    Spot on! Thanks!

+ 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