+ Reply to Thread
Results 1 to 7 of 7

Calculation error between number and hours

  1. #1
    Registered User
    Join Date
    09-15-2015
    Location
    Malaysia
    MS-Off Ver
    Office 365
    Posts
    45

    Calculation error between number and hours

    Greetings All.

    I am trying to get hourly output rate from total output quantity divided by total hours worked but am getting error. Secondly unable to use the formula to convert but I could get the hourly output if the total hours entered manually.

    Attached spreadsheet.

    Example - Total Output is =SUM(C341,E341,G341,J341) = 21654. Total Hours is 15.45 (AA341) .

    If using auto calculations - =SUM(C341,E341,G341,J341/(AA341) - The answer i get is = 24569 (The answer should be 1402)

    Please guide where is the error. Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Calculation error between number and hours

    =SUM(C341,E341,G341,J341)/AA341/24
    15:45 is not 15,45 but 0,6562500 and nust be multiply with 24 then will be 15,75

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,211

    Re: Calculation error between number and hours

    =SUM(C341,E341,G341,J341/(AA341) is missing a bracket

    =SUM(C341,E341,G341,J341)/(AA341) /24 gives 1375 which you have and is correct


    The reason is 15:45 is 15hours and 45 minutes or decimal 15.75. it is not 15.45 which is what you are doing erroneously

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Calculation error between number and hours

    I have no idea what this calculation means but it seems to be correct (from excel pov):

    C
    E
    G
    J
    AA
    AK
    AL
    341
    860
    14750
    479
    5565
    15:45
    21654
    1375



    C
    E
    G
    J
    AA
    AK
    AL
    341
    860
    14750
    479
    5565
    =MOD('Daily Lifting'!$Z341-'Daily Lifting'!$Y341,1)
    =SUM(C341,E341,G341,J341)
    =AK341/(AA341*24)
    Last edited by KOKOSEK; 01-27-2020 at 05:52 AM.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  5. #5
    Registered User
    Join Date
    09-15-2015
    Location
    Malaysia
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Calculation error between number and hours

    Thank you BMV

  6. #6
    Registered User
    Join Date
    09-15-2015
    Location
    Malaysia
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Calculation error between number and hours

    Hi Davsth, Yes, I missed out the bracket and have amended as advised. The below formula works without creating a new total column.

    =SUM(C341,E341,G341,J341)/(AA341) /24

    Thank you.

  7. #7
    Registered User
    Join Date
    09-15-2015
    Location
    Malaysia
    MS-Off Ver
    Office 365
    Posts
    45

    Re: Calculation error between number and hours

    Hi Kokosek,

    The numbers C,E,G and J are the total production output for the day. My intention on the formula is get the hourly output without creating a new total column for C,E,G and J.

    Wanted to avoid column AL, so that I could get the answer in column AK itself.

    =SUM(C341,E341,G341,J341)/(AA341) /24

    Thank you.

+ 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. Calculation of a certain number of hours out of 24 over multiple days
    By Bernice75 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-11-2018, 05:02 AM
  2. Calculating Remaining Date Time Hours - Error In My Calculation/Code
    By excelnube84 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-04-2012, 05:04 AM
  3. Replies: 3
    Last Post: 01-20-2012, 04:46 AM
  4. Number of hours worked calculation
    By kosciosco in forum Excel General
    Replies: 1
    Last Post: 06-03-2010, 11:52 AM
  5. Replies: 4
    Last Post: 06-02-2009, 12:20 PM
  6. Making an values in hours into a number for the purspose of a calculation
    By robbo747 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-25-2007, 09:31 AM
  7. Hours and number calculation - how
    By snorrekatt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-21-2006, 10:33 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