<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - CALC FORMATTING, AVERAGE FUNCTION"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=123533">123533</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>CALC FORMATTING, AVERAGE FUNCTION
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>5.2.7.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Calc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>laf2005laurie@yahoo.com
</td>
</tr></table>
<p>
<div>
<pre>Description:
Using AVERAGE across a row of 12 cells returns a different amount than using
SUM and dividing by 12.
ie) =AVERAGE(B164,M164) = 645,200.0
=SUM(B164:M164) /12 = 645,116.7
The document was originally an Excel file (from a state data store). Opened in
LibreCalc Version: 5.2.7.2
Build ID: 1:5.2.7-1+deb9u5
_Debian GNU Linux 9.7
Steps to Reproduce:
1.Used: =AVERAGE(B40,M40)
2. Noticed unequal answer to another cell with Sum (B40:M40) /12
Actual Results:
1. 52,200 (USING AVERAGE FUNCTION)
2. 52,467 (SUM same cells and dividing by 12--n of cells)
Expected Results:
= 52,466.67
data for your reference in one case- many other rows different numbers affected
the same in that average did not correctly work but sum and divide did.
53800+53700+53600+53500+53300+52900+52500+52000+51600+51200+50900+50600=629,600
629,600/12 = 52,466.67
AVERAGE SHOULD EQUAL SUM of cells divided by the nth number of cells added.
Reproducible: Sometimes
User Profile Reset: Yes
Additional Info:
The document was a State supplied excel sheet. There were no functions in the
sheet, just numbers. Began using a formula to verify discrepancy all the way
thru the 40 year sheet, just outside of the table area that went to 258 N so
was putting formula in rows 1-258, column O, P and Q referencing the numbers in
the table.
In the same sheet, copying the data to well below 258, the AVERAGE function
worked as did the sum /12 and after adding a new sheet, was able to paste the
numbers there and add the same average function but with correct answers.
It seems there is a compatibility issue with the data in the excel file.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>