+ Reply to Thread
Results 1 to 6 of 6

Date & Time Minus Date & Time

  1. #1
    Forum Contributor
    Join Date
    08-22-2008
    Location
    S-o-t
    MS-Off Ver
    Office 2000 & 2010
    Posts
    166

    Date & Time Minus Date & Time

    Hi

    In B7 i have 10/09/2009 19:30:00
    In C7 i have 11/09/2009 21:30:00

    What i want is C7-B7 and give the number of hours in between which should be 26 hours

    I've used this:

    Please Login or Register  to view this content.
    But i get 01/01/1900 02:00

    Hope you can help
    Dave
    Last edited by Dave69rock; 09-09-2009 at 10:42 PM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Date & Time Minus Date & Time

    Hi Dave,

    Just use the formula

    =C7-B7

    and format that cell using a Custom format of: [h]

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,374

    Re: Date & Time Minus Date & Time

    Hi,
    try this

    =C7-B7

    format as [h]:mm:ss

    hth

  4. #4
    Forum Contributor
    Join Date
    08-22-2008
    Location
    S-o-t
    MS-Off Ver
    Office 2000 & 2010
    Posts
    166

    Re: Date & Time Minus Date & Time

    Thanks for the quick reply

    I've already tried that and i get 2 as the value

    Dave

  5. #5
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Date & Time Minus Date & Time

    Are you 100% absolutely certain you set the custom format exactly as we show it? Including the brackets around the h? It should look exactly like:

    [h]

    in the custom format textbox.

  6. #6
    Forum Contributor
    Join Date
    08-22-2008
    Location
    S-o-t
    MS-Off Ver
    Office 2000 & 2010
    Posts
    166

    Re: Date & Time Minus Date & Time

    Sorry

    Thanks it was me

    it works many thanks

    Dave

+ 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