[Solved] Help converting MS Excel formula to AOO formula

Discuss the spreadsheet application
Post Reply
Imtom.113
Posts: 4
Joined: Wed Feb 13, 2019 2:06 am

[Solved] Help converting MS Excel formula to AOO formula

Post by Imtom.113 »

Thx to all for help with solving this. Very much appreciated !!! Tom

I'm using this version...

Apache Open Office 4.1.6
AOO416m1(Build:9790) - Rev. 1844436
2018-10-23 12:57

I'm getting an ERR:509 when I try to use the following EXCEL formula in my AOO Calc spreadsheet. Could someone assist me to convert it ? Thx, Tom

=CHOOSE(MOD(COLUMNS($a:a)-1,4)+1,"1st","2nd","3rd","4th")&" Qtr "&2018+ROUNDUP(COLUMNS($a:a)/4,0)
Last edited by Imtom.113 on Tue Feb 19, 2019 11:08 pm, edited 1 time in total.
OpenOffice 4.1.6 on Windows 10
User avatar
Zizi64
Volunteer
Posts: 11356
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Help converting Excel formula to AOO formula

Post by Zizi64 »

My First tip: use semicolon ; instead of the comma , - as a parameter separator character.

The modified formula seems to work for me in my LO 6.1.5 version.

Code: Select all

=CHOOSE(MOD(COLUMNS($A:A)-1;4)+1;"1st";"2nd";"3rd";"4th")&" Qtr "&2018+ROUNDUP(COLUMNS($A:A)/4)
I just added a semicolon between the parameters 1"1st" -> 1;"1st"
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
FJCC
Moderator
Posts: 9268
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Help converting Excel formula to AOO formula

Post by FJCC »

OpenOffice does not recognize referring to entire columns by just the letter. Try

Code: Select all

=CHOOSE(MOD(COLUMNS($A1:A1048576)-1;4)+1;"1st";"2nd";"3rd";"4th")&" Qtr "&2018+ROUNDUP(COLUMNS($A1:A1048576)/4)
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
Villeroy
Volunteer
Posts: 31277
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Help converting Excel formula to AOO formula

Post by Villeroy »

You have 2 options:
1) If the formula used to work with Excel then open the xls file you have with OpenOffice. OpenOffice will do the right thing with your formulas and you can see how they differ syntactically from MS Excel.
2) Install https://libreoffice.org/ which is the legitimate successor of OpenOffice. Its Calc component is almost fully compatible with MS Excel.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply