Bug 60477 - Function SUBTOTAL does not comply with ODF Standard v1.2
Summary: Function SUBTOTAL does not comply with ODF Standard v1.2
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.5.4 RC1
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 87043 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-02-08 08:43 UTC by Tiziano
Modified: 2017-04-08 23:34 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Esempio errore (12.40 KB, application/vnd.oasis.opendocument.spreadsheet)
2013-02-08 08:43 UTC, Tiziano
Details
printscreen LO 4.4.5 (32.19 KB, image/png)
2015-08-07 10:52 UTC, raal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tiziano 2013-02-08 08:43:40 UTC
Created attachment 74411 [details]
Esempio errore

Buongiorno 
sono felicemente passato a Libreoffice, ma nei file di calcolo creati con Microsoft Office trovo una funzione in più che in Libre office non esiste.
Invio questa segnalazione in caso possa esservi di aiuto per migliorare il Vostro programma

Nella formula "subtotale", in Microsoft Office se metto il numero 109 sulla funzione, al posto del numero 9, il calcolo viene eseguito senza tenere conto dei numeri nascosti. 
Allego file con un esempio dell'errore.

Grazie


Good morning
I happily switched to Libreoffice, but in the calculation file created with Microsoft Office find a function in more than in Libre office does not exist.
Send this alert in case it might help you to improve your program

In the formula "subtotal" in Microsoft Office if I put the number 109 on the function, instead of the number 9, the calculation is performed without taking into account the hidden numbers.
I attach a file to an example of the error.

thanks
Comment 1 Steve 2013-03-28 14:36:27 UTC
The function numbers used by Excel and Calc differ.

Excel uses the function numbers 1-11 and 101-111.  The first group includes hidden cells whereas the second group doesn't but both groups are otherwise the same.
Calc only recognises 1-11 but these correspond to 101-111 in Excel.

In other words, the following are equivalent:
Excel =subtotal(109,A1:A5)
Calc  =subtotal(9,A1:A5)

Simply mapping 101-111 to be the same as 1-11 would avoid getting Err:502 and the inability to switch between the two packages.
Comment 2 GerardF 2013-03-28 14:57:45 UTC
(In reply to comment #1)
> The function numbers used by Excel and Calc differ.
> 
> Excel uses the function numbers 1-11 and 101-111.  The first group includes
> hidden cells whereas the second group doesn't but both groups are otherwise
> the same.
> Calc only recognises 1-11 but these correspond to 101-111 in Excel.
> In other words, the following are equivalent:
> Excel =subtotal(109,A1:A5)
> Calc  =subtotal(9,A1:A5)
> 
> Simply mapping 101-111 to be the same as 1-11 would avoid getting Err:502
> and the inability to switch between the two packages.

No. Not exactly :
Type function 1 to 11 exclude cells *hidden by filter* in both Excel and Calc.
Type function 101 to 111 exculde *all hidden cells* including cells hidden with Format > Row > Hide.
Comment 3 Michel Rudelle 2013-05-05 16:42:48 UTC
Hi,
The problem is that  SUBTOTAL function should allow function numbers from 101 to 111, according to OASIS Standard :
[Open Document Format for Office Applications (OpenDocument) Version 1.2 Part 2: Recalculated Formula (OpenFormula) - 29 September 2011; page 165]
This is an unpleasant inconvenience for Excel compatibility
Comment 4 Jean-Baptiste Faure 2013-05-10 16:16:01 UTC
If this is a standard compliance issue then it is a bug not an enhancement.
Importance changed accordingly.

Best regards. JBF
Comment 5 GerardF 2014-12-06 08:27:04 UTC
*** Bug 87043 has been marked as a duplicate of this bug. ***
Comment 7 raal 2015-08-06 12:50:12 UTC
*** Bug 93171 has been marked as a duplicate of this bug. ***
Comment 8 raal 2015-08-07 10:52:22 UTC
Created attachment 117738 [details]
printscreen LO 4.4.5

LO 4.4.5 - bug is fixed. Closing as worksforme, because I don't know the commit.