+ Reply to Thread
Results 1 to 6 of 6

Military time wont total correct in a column

  1. #1
    Registered User
    Join Date
    08-20-2008
    Location
    Manassas, Va
    Posts
    6

    Smile Military time wont total correct in a column

    Dilemma:
    I have two columns.
    B. start time C. end time D. Total time (military time)
    Example: 2300 - 0300 = 4 hrs worked.
    =IF(C19-B19>0,C19-B19,1+C19-B19)

    I have a row for every date the hors is worked.

    I cant seem to get the total hours to calculate correctly at the bottom of column D for a total hours worked in a particular pay period. It calculates a total up to 24hrs then reverts to zero. I have tried [h]:mm =SUM(XX:XX) and just about everything else I can think of and cant get it to calculate a correct total over 24 hrs.

    Any suggestion would be greatly appreciated. Thank you !@!
    Last edited by oldchippy; 11-09-2008 at 11:54 AM.

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

    Just try this on a couple of cells,

    B19 = 03:00:00
    C19 = 03:00:00

    Using your formula the result is 00:00:00

    But if they are included in the SUM total it adds 24hours to the total
    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

  3. #3
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,677
    Welcome to the forum.

    Formatting the result as [h]:mm should work. If not, post a workbook.

  4. #4
    Registered User
    Join Date
    08-20-2008
    Location
    Manassas, Va
    Posts
    6
    Here is the workbook. Thank you !!
    Attached Files Attached Files

  5. #5
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,677
    Change the formula in D19:D31 to = C19-B19 + (C19<B19), and change the format of those cells and J33 to [h]:mm

  6. #6
    Registered User
    Join Date
    08-20-2008
    Location
    Manassas, Va
    Posts
    6
    You are a genius. It worked perfectly! I am trying to learn Excel so pardon my ignorance.

    Thanks so much for the assistance!!!!

+ 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. row total - column total
    By musini in forum Excel General
    Replies: 8
    Last Post: 03-16-2008, 05:32 PM
  2. Massive Sorting question.
    By Rgaherty in forum Excel Programming / VBA / Macros
    Replies: 35
    Last Post: 11-07-2007, 02:15 PM
  3. Subtracting Military Time, with output in minutes
    By pink in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-13-2007, 02:43 AM
  4. Reg time, and Overtime
    By natei6 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2006, 09:27 PM
  5. caluclate total time for those that were present
    By SabinN in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-12-2006, 01:00 AM

Tags for this Thread

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