Forum Discussion
Phil_Couzens
Nov 07, 2023Copper Contributor
Calculation error in spreadsheet
I am having a problem with fraction calculations using the sum function.
For Example:
Cells a1 and b1 formatted as time values
Cells c1, d1, e1 in number format
c1 sum(b1-a1)*24
hourly rate entered into D1
e1 sum(c1*d1)
e.g. 04:40 - 02:00 = 2.67hrs
e.g. D1 £22
Result in e1 = 58.67
However, when done on a calculator the result come out at £58.74
When using full hrs result in e1 comes out correct
Anyone suggest a way of overcoming this
- mibradyMicrosoft
Hi Phil! Can you share what you entered in the calculator? From what I see, they worked 2 2/3 hours (8/3) times 22 as the rate. When I put that in a calculator I get 58.67 (rounded). I thought it might be a rounding error but I can't replicate your 58.74.
- mibradyMicrosoftAh! It just occurred to me. It is a rounding error. So, I realize that 58.74 is 2.67*22. However, 2.67 is a rounded number for 2 2/3. Thus, 58.67 is actually the more accurate number as it doesn't round until the end of the equation.
- Phil_CouzensCopper ContributorIf I enter the 2.67 in an extra cell manually, and then formulate the final cell. The result is 58.74.
Could it be a format error in cells a & b