+ Reply to Thread
Results 1 to 2 of 2

Time calcuation

  1. #1
    Registered User
    Join Date
    04-02-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    49

    Time calcuation

    I'm using this formula (below) to add the hrs between 2 time periods (4:30 pm in cell I37 and 8:00 pm in I38, then the formula is in I39) and works almost every time even when the second time goes into the am hours, except in certain instances such as: 4:30 pm to 11pm show as 30.5? But sometimes it shows the correct number, 6.5, does anyone know why this happens? Thanks!

    =(IF(I37>I38,I38+1-I37,I38-I37))*24

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,997

    Re: Time calcuation

    In the absence of any data, I can only assume that the cells actually have dates in them as well as times ... but are formatted to show only times. If the date is a day different, that would explain the 24 hour anomaly.

    Use a Custom Format to show the date and time in the cells to see what data is really there.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. need help making excel for 4 sum calcuation in 1 short
    By samj221 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-02-2012, 10:26 AM
  2. Excel 2007 : Spread of Hours Calcuation
    By Lfrat in forum Excel General
    Replies: 3
    Last Post: 06-08-2012, 08:42 AM
  3. holding a value after first calcuation
    By spence in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-26-2006, 08:00 PM
  4. How do I keep Excel in manual calcuation?
    By iumike2004 in forum Excel General
    Replies: 2
    Last Post: 02-28-2006, 05:40 PM
  5. Performing calcuation based off IF formula
    By rob7278 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-17-2005, 12:51 AM

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