Calc division gives ‘significantly different (smaller) result’ to Excel
… therefore ‘one must be incorrect’ !
Edit:
For clarification…
This problem can be replicated using just 3 cells:
314.906088434789 / 104,975
IE. The two source numbers above, and the division formula.
If you make the division in Calc, and similar division in other calculators … you will see if there is any discrepancy in the results.
Also…
By attempting to subtract different results, you may also see differing results.
End of edit
Background
I’m working on a set of data that requires many two cell divisions (small number/large number).
The grid is 44 columns x 11 rows = 484 cells.
The sum contents of these cells = 1
Each cell in a row, is then divided by 5 to create 5 new rows (one row of cells is divided by 10).
IE. The initial small numbers get much smaller.
The new grid is 44 columns x 60 rows = 2640 cells
The sum contents of these cells should = 1
However…
Summing the 2640 cells = 0.9781466396134060
Investigating Division
I picked a random division formula cell
314.906088434789 / 104,975 = 0.00299981983871304 (Libre Calc)
I ran the same division at calculator.net, Windows calculator, and Excel
314.906088434789 / 104,975 = 0.0029998198469616 ___(calculator.net)
314.906088434789 / 104,975 = 0.0029998198469616 ___(win calculator)
314.906088434789 / 104,975 = 0.002999819846961550 _(Excel)
If we round the Excel result by one decimal place, all 3 reference calculations agree =
0.0029998198469616 (the 3 reference calculations)
0.0029998198387130 (Libre Calc)
The Libre Calc result is significantly smaller than the Excel result.
Investigating Subtraction
To find the difference between division results in Calc & Excel, I subtracted Calc from Excel.
This subtraction excercise was done in both Calc & Excel
0.00299981984696155 - 0.00299981983871304
= 0.000000000008248512983755060 (Excel)
= 0.000000000008248509510000000 (Calc)
Excel produces more decimal places; but we can round the result, for comparison:
= 0.00000000000824851298 (Excel)
= 0.00000000000824850951 (Calc)
Once again the Calc result is smaller than the Excel result.
Other Potential Issues
I have not yet investigated ‘addition’, nor ‘multiplication’.
In fact, the 2640 cells are tasked with multiplying a number.
They are selected by row >= <= and column >= <= and summed
The resulting total multiplies a given number.
Using this method, I selected all 2640 cells (should equal 1)
… and multiplied 104,975,000
The result = 102,680,944
The calculation was incorrect by 2,294,056 (2.3 million)
Finding the error
Referring back to my opening statements:
The sum contents of these (2640) cells should = 1
However…
Summing the 2640 cells = 0.9781466396134060
Using a web calculator rapidtables.com
104,975,000 x 0.9781466396134060 = 102,680,943
The ‘selection sum’ to multiply, and rapidtables.com, both produce the same result.
Conclusion
The problem appears to be the result of…
'division in Calc, producing results that are numerically smaller than other methods of division.
Is this a known issue?
I’m at a loss as to what to do, because the division calculation is the most basic arithmetic.
can anyone cast light on this issue … or maybe outline a fix?