+ Reply to Thread
Results 1 to 6 of 6

Substracting a fixed number of hours to a time

  1. #1
    Registered User
    Join Date
    09-19-2006
    Posts
    3

    Substracting a fixed number of hours to a time

    Hi,

    I have the following problem, I have looked through the tips section but I am thinking none of these tips adjust specifically to my need and I am not entirely capable of coming out with my own solution

    I have a column filled with times in hh:mm format, all of these times have been pulled out from a server in a different location and therefore they have +6 hours. I want to come out with a formula that will substract 6 hours to all of these times

    IE.

    06:08 should be 00:08
    13:00 should be 07:00
    04:00 should be 22:00 of the day before although I can find a way to avoid this complication manually.

    I really appreciate your help with this!

    Paulo C.

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Thumbs up

    Quote Originally Posted by PauloCR
    Hi,

    I have the following problem, I have looked through the tips section but I am thinking none of these tips adjust specifically to my need and I am not entirely capable of coming out with my own solution

    I have a column filled with times in hh:mm format, all of these times have been pulled out from a server in a different location and therefore they have +6 hours. I want to come out with a formula that will substract 6 hours to all of these times

    IE.

    06:08 should be 00:08
    13:00 should be 07:00
    04:00 should be 22:00 of the day before although I can find a way to avoid this complication manually.

    I really appreciate your help with this!

    Paulo C.
    Hi PauloCR,

    Try this formula

    =A1+24-0.25

    oldchippy

  3. #3
    Registered User
    Join Date
    09-19-2006
    Posts
    3

    Thanks

    Thanks Oldchippy!

    However I am confused about something, here are some of the results I got:

    1:08 18:00
    2:17 19:08
    2:27 20:17
    4:25 20:27
    5:50 22:25
    11:42 23:50

    As you can see some of the minutes are being modified too and the hours difference is not correct.

    Thanks so much

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Quote Originally Posted by PauloCR
    Thanks Oldchippy!

    However I am confused about something, here are some of the results I got:

    1:08 18:00
    2:17 19:08
    2:27 20:17
    4:25 20:27
    5:50 22:25
    11:42 23:50

    As you can see some of the minutes are being modified too and the hours difference is not correct.

    Thanks so much
    It works on mine OK, are you sure all cells are formatted hh:ss? Are just these the problem or are all causing trouble?

  5. #5
    Registered User
    Join Date
    09-19-2006
    Posts
    3

    yes

    yes, small error on my part! it works great.

    Thanks so much oldchippy!

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Good, thanks for the feedback

+ 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