+ Reply to Thread
Results 1 to 5 of 5

Date time issue

  1. #1
    Registered User
    Join Date
    11-23-2006
    Posts
    2

    Date time issue

    Hi

    I have a spreadsheet where 1 column is date and time an order was entered the next column is the date and time the order was sent, the guy who created the spreadsheet then in the next column put the time difference between the 2 columns but this is where the issue is, for example the first cell is populated with 08/02/2006 03:37:18 (that is 2nd Aug 2006 the date is in US format) the 2nd cell is populated with 08/02/2006 04:09:35 so the time difference between these 2 times is 32 mins 17 secs, now he has the time difference as 0.54 which is obvioulsy in hours I want the time to show as 32 mins 17 secs ...........how can I convert the 0.54 into 32 mins 17 secs

    Thanks for any help, advice

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    This is what I get

    3:37:18 4:09:35 0:32:17 =B1-A1


    May have to play with the format, my excel automatically went to time format when I entered B1-A1

  3. #3
    Registered User
    Join Date
    11-23-2006
    Posts
    2
    thanks Dave, that works for orders that the difference is less than a day but I have thousands of orders that the difference in time is over a day, how do I then convert that into minutes ????

    cheers

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,787
    Why not just use =B1-A1 and format as [h]:mm:ss. then 1 day 3 hours, 26 minutes would be shown as

    27:26:00

    i.e. 27 hours and 26 minutes.

    If that's no good then please give the format you would like to see for such a time difference

  5. #5
    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 Flash
    thanks Dave, that works for orders that the difference is less than a day but I have thousands of orders that the difference in time is over a day, how do I then convert that into minutes ????

    cheers
    Try this for converting all times to minutes - ignoring the seconds

    Start Time in A1 08/02/2006 03:37:18 End Time in A2 08/02/2006 04:09:35

    =DAY(A2-A1)*24*60+HOUR(A2-A1-DAY(A2-A1))*60+MINUTE(A2-A1-DAY(A2-A1)) format to General
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

+ 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