+ Reply to Thread
Results 1 to 2 of 2

Data in hours format calculates wrong

  1. #1
    Registered User
    Join Date
    11-06-2013
    Location
    Tonbridge, Kent
    MS-Off Ver
    Excel 2013
    Posts
    8

    Data in hours format calculates wrong

    Hi, We have an existing overtime form that I have tried to modify. A need for our guys to work overnight required an additional column, 'C',in the attached sheet. I have managed to overcome working past midnight and get the hours in column 'C' but when I try to add up those hours, that is where it is going wrong.
    C28 should total 27 hours, it is showing 1683.
    C29 is the total hours x 1.33 - it should be 35.91, it is showing 2238.4
    C30 is the number of nights worked, in this case 3
    C31 is the number of normal working hours multiplied by the number of nights
    C32 should be the resultant overtime worked - should read 11.91 but shows 2214.4
    I have checked the formatting and cannot see what is wrong, so any help appreciated. I am aware that there are a few other errors when certain combinations are selected, I can deal with those.
    Thanks,
    Cliff
    Attached Files Attached Files
    Last edited by Cliff Gathern; 02-04-2014 at 01:04 PM. Reason: Solved

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Data in hours format calculates wrong

    In your formula in column C, replace 24 with 1. In C13 for example,
    =IF(K13="FR","",IF(K13="x2","",IF(K13="x1.5","",IF(I13="","",S13-P13-U13+IF(S13<P13,1,0)))))
    (I also removed "SUM" as you do not need it.
    Excel uses the day as the primary unit in time keeping. So adding 24 is adding 24 days or 576 hours.
    Hope that helps.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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. Adding a formula that calculates dates by repair hours
    By dave1967 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2009, 03:35 PM
  2. [SOLVED] create a timesheet that calculates hours per person per day and to
    By J.127 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-07-2006, 01:35 PM
  3. Need Time Sheet that calculates hours/mins from input of times
    By Steve in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2005, 08:06 PM
  4. [SOLVED] Is there a time sheet template that calculates hours?
    By CTG in forum Excel General
    Replies: 2
    Last Post: 02-24-2005, 05:06 PM
  5. [SOLVED] Is there a time sheet template that calculates hours?
    By CTG in forum Excel General
    Replies: 2
    Last Post: 02-16-2005, 06:06 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