Apache OpenOffice (AOO) Bugzilla – Issue 16764
AVERAGE function processed as SUM
Last modified: 2003-09-19 09:20:36 UTC
Set up a database with at least 3 columns. In Data>Subtotals ask for the AVERAGE on two of the columns (that would be two groupings, on the same field). The first column will get its AVERAGE, while the second column changes to a SUM.
I could not reproduce this problem. Please retry with a newer version of OOo (OOo 605 was a really early testbuild)
Actually this was in 1.1 Beta 2, but I wasn't offered the choice in the input panel of anything beyond 605 (IIRC, just 1.0.1, 1.0.2, 1.0.3, and 605). Maybe BugZilla was just having a bad day. Does that change the analysis or was this fixed since Beta 2? I'll send step-by-step way to replicate on Beta 2 if you want it.
Please add a step-by-step description or/and attach a sampledocument to reproduce the problem.
Well, my floppy drive is broken and the LAN is broken, so I'll have to show it to you here: A B C D E F 1 Sales Comm. Col. Sales Comm% Comm$ 2 $0.00 10.0% 2 $140.00 =VLOOKUP(D2;A1:B4;C2;TRUE) =D2*E2 3 $100.00 10.5% 4 $200.00 11.0% Note that the 'TRUE' in E2 gets changed to '1'. For the Sales value (D2) of $100.00, which exactly matches one of column A's values, E2 shows 10.5% (works correctly). For D2 of $140.00, E2 shows '#N/A'. A WORKAROUND I just found while typing this in is to change A1:B4 to A2:B4, but then the operation of VLOOKUP does not match Excel. Excel permits the inclusion of column labels in the lookup table range, while Calc apparently chokes on them. If you want to consider this an enhancement request (to work Excel-style) instead of a bug, I could live with that.
Created attachment 9438 [details] demonstrate how AVERAGE function changes to SUM
Please ignore the above entry about VLOOKUP; it was intended for issue 19089.
I suggest you create a simple file, just to show this, and explain it step by step. I already download your file but too many data, and not enough explanantion. I think you can just use some data, and in real calc file, if it is calc problem. dont use the writer file
Hi Phil, you have to select the calculation function for each subtotal group. As far as I can see, you checked first the munchies box, when the thirstees and now selected the average function. But this effects only the thirstees selection. So I have to close this one as invalid. Frank
closed invalid