Page 1 of 1

[Solved] Plz translate Excel formula to OpenOffice

PostPosted: Mon Jul 15, 2019 4:01 am
by statiyo
Hi

Am trying to solve my case in Oppenoffice so I found a the perfect exemple but its for excel...I tried the formula in Oppenoffice did not work...:

Formula 2. Vlookup multiple matches and return results in a row at link below

https://www.ablebits.com/office-addins- ... ues-excel/

=IFERROR(INDEX($B$3:$B$13, SMALL(IF($D3=$A$3:$A$13, ROW($B$3:$B$13)-2,""), COLUMN()-4)),"")

Could someone kindly please translate this excel formula for openoffice?

Many thanks

Re: Plz translate excel formula to openoffice

PostPosted: Mon Jul 15, 2019 5:23 am
by RusselB
Welcome to the Forums.
Open Office does not have the IFERROR function.
For Open Office you need to change that to a nested IF with the first parameter being the ISERROR function. I also don't know about the comparison in the IF that is contained in your SMALL.
Presuming that works, the OpenOffice Calc formula would be
Code: Select all   Expand viewCollapse view
=if(iserror(INDEX($B$3:$B$13;SMALL(IF($D3=$A$3:$A$13;ROW($B$3:$B$13)-2;"");COLUMN()-4)));"";INDEX($B$3:$B$13;SMALL(IF($D3=$A$3:$A$13;ROW($B$3:$B$13)-2;"");COLUMN()-4)))

An alternative suggestion is to download and install LibreOffice, which supports the IFERROR function and the usage of commas as parameter separators, rather than semi-colons, which OpenOffice uses.

Re: Plz translate excel formula to openoffice

PostPosted: Mon Jul 15, 2019 6:08 am
by Zizi64
Note:
The AOO/LO Calc is a multiplatform, and multilanguage software.
The comma is the decimal separator in many languages (like the Hungarian and the German languages and others)
Therefore it is better to use the semicolon as parameter separators, instead of the comma in the LibreOffice.

Re: Plz translate excel formula to openoffice

PostPosted: Mon Jul 15, 2019 11:23 am
by Villeroy
Install https://libreoffice.org and your formula will work with IFERROR and with commas. LibreOffice is the successor to OpenOffice.

Re: Plz translate excel formula to openoffice

PostPosted: Mon Jul 15, 2019 4:03 pm
by John_Ha
Villeroy wrote:... LibreOffice is the successor to OpenOffice.

I don't think that is correct. An Airbus 380 is not a successor to a Boeing 747 - there is zero relationship between them.

Similarly AOO and LO are completely different products designed and built by completely different organisations and there is zero relationship between them.

I think it is better to say "LibreOffice is a more up to date and continuing to be developed alternative to ApacheOpenOffice".

Re: Plz translate excel formula to openoffice

PostPosted: Mon Jul 15, 2019 5:13 pm
by Villeroy
Image

LO forked from version 3.3. Versions 3.3 of both products were identical.
AOO released 3 more versions with the side bar being the only visible feature compared to 3.3.
LO developed steadily introducing hundreds of improvements and major changes, some of them questionable though. For spreadsheet users, particularly from the anglosaxon sphere, very high compatibility with XL is certainly a valuable set of features.

Re: Plz translate excel formula to openoffice

PostPosted: Mon Jul 15, 2019 6:42 pm
by statiyo
Thanks for your help!

I'm closer than I was but am getting incorrect results - how to fix formula?

Plz see attached file

Re: Plz translate excel formula to openoffice

PostPosted: Mon Jul 15, 2019 7:09 pm
by gerard24
https://www.ablebits.com/office-addins-blog/2017/02/22/vlookup-multiple-values-excel/ wrote:enter one of the following array formulas in the formula bar, and press Ctrl + Shift + Enter

Re: Plz translate excel formula to openoffice

PostPosted: Mon Jul 15, 2019 9:16 pm
by statiyo
thx I did CSE but the curly brackets do not show up and same result...any ideas??

Re: Plz translate excel formula to openoffice

PostPosted: Mon Jul 15, 2019 9:25 pm
by Villeroy
Pivot tables are easy.

Re: Plz translate excel formula to openoffice

PostPosted: Mon Jul 15, 2019 9:37 pm
by statiyo
Interesting, thx Villeroy for making it right!!

Re: Plz translate excel formula to openoffice

PostPosted: Mon Jul 15, 2019 9:41 pm
by Villeroy
https://wiki.openoffice.org/wiki/Docume ... /DataPilot (data pilot and pivot table are the same)

I added column headers above the data, called menu:Data>Pivot>Create... and plotted names in row fields against items in column fields with a data field couting the items.

Re: Plz translate excel formula to openoffice

PostPosted: Mon Jul 15, 2019 10:29 pm
by John_Ha
Villeroy wrote:LO forked from version 3.3. Versions 3.3 of both products were identical.

I think we are in violent agreement and the correct statement is, as you suggest, "LibreOffice is a successor to OpenOffice.org". Similarly, AOO is a successor to OpenOffice.org.

I know it's semantics but I am a long-standing member of The Pedants' Society :-) .