[Solved] Any Alternatives to GETQUOTE?

Discuss the spreadsheet application
husky55
Posts: 5
Joined: Thu Jun 18, 2015 4:42 pm
Location: Connectcut

Re: [Solved] Any Alternatives to GETQUOTE?

Post by husky55 »

madsailor wrote: NOTE: This is where the difference comes in - when using the OO version your input should look like "=GETYAHOO('XOM';21)", while when using the LO version it should look like "=GETYAHOO('XOM',21)". Note the semicolon vs. comma.

Also, the upcoming release will support both LO and OO out of the box, consolidating the two versions I linked above; however the semicolon vs comma difference will remain..
Exactly right!!! In addition, in OO if you use paste link then you need to use the function VALUE in OO 4.1.1 for any calculation to work.
OPENOFFICE 4.4.3 Win7
User avatar
Villeroy
Volunteer
Posts: 31361
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Solved] Any Alternatives to GETQUOTE?

Post by Villeroy »

husky55 wrote:
madsailor wrote: NOTE: This is where the difference comes in - when using the OO version your input should look like "=GETYAHOO('XOM';21)", while when using the LO version it should look like "=GETYAHOO('XOM',21)". Note the semicolon vs. comma.

Also, the upcoming release will support both LO and OO out of the box, consolidating the two versions I linked above; however the semicolon vs comma difference will remain..
Exactly right!!! In addition, in OO if you use paste link then you need to use the function VALUE in OO 4.1.1 for any calculation to work.
WRONG!
Of course you need to use the list separator which is valid for your individual office setup. My LibreOffice requires semicolons as well because comma is my decimal separator. The changable list separators is one of the most confusing "improvements" in LibreOffice.

And no, the VALUE problem should have been resolved with the latest versions of GETQUOTE. My LIbre/OpenOffice can not convert strings to values by means of VALUE when the assumed decimal separator is point which is how this long topic started. The GETQUOTE functions should return numeric cell values now.
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
howdydooit
Posts: 4
Joined: Fri Jun 19, 2015 2:23 am

Re: [Solved] Any Alternatives to GETQUOTE?

Post by howdydooit »

Exactly right!!! In addition, in OO if you use paste link then you need to use the function VALUE in OO 4.1.1 for any calculation to work.
It took me a while to bumble my way through this, but THANKYOU!
OpenOffice 4.1.1 on Win7
husky55
Posts: 5
Joined: Thu Jun 18, 2015 4:42 pm
Location: Connectcut

Re: [Solved] Any Alternatives to GETQUOTE?

Post by husky55 »

It took me a while too!!!!LOL
OPENOFFICE 4.4.3 Win7
howdydooit
Posts: 4
Joined: Fri Jun 19, 2015 2:23 am

Re: [Solved] Any Alternatives to GETQUOTE?

Post by howdydooit »

So, to save people with my skill level a ton of time, the syntax is:
=VALUE(GETYAHOO(A3;21)) (This is for Open Office. Others are saying to replace the semi colon with a comma in Libre Office)

In the example below:
"Equity" is the heading in A2, "Share Price" is the heading in B2
"AAPL" is whatever ticker you want in A3, and "126.60" in B4 is the value returned by typing the above formula into B4.

Equity Share Price
AAPL 126.60

You can format B4 to your liking (add a $ for instance, or change the decimal setting, etc.)
In my case, I had a column of symbols in A and a column of share price values in B. Other formulas in the spreadsheet that refer to Values in those cells work fine.
OpenOffice 4.1.1 on Win7
User avatar
Villeroy
Volunteer
Posts: 31361
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Solved] Any Alternatives to GETQUOTE?

Post by Villeroy »

howdydooit wrote:So, to save people with my skill level a ton of time, the syntax is:
=VALUE(GETYAHOO(A3;21)) (This is for Open Office. Others are saying to replace the semi colon with a comma in Libre Office)
No, with the latest version it is simply =GETYAHOO(A3 ; 21) or =GETYAHOO(A3 , 21) because the latest version returns numbers. Old versions returned text.
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
howdydooit
Posts: 4
Joined: Fri Jun 19, 2015 2:23 am

Re: [Solved] Any Alternatives to GETQUOTE?

Post by howdydooit »

Well, for people like me, who are on Open Office 4.1.1 (Windows 7) where your method clearly doesn't work, try my version. Villeroy - read my post at the end of page 2.
OpenOffice 4.1.1 on Win7
User avatar
Villeroy
Volunteer
Posts: 31361
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Solved] Any Alternatives to GETQUOTE?

Post by Villeroy »

Well, then use VALUE if that works for you.

If your document needs to be compatible with comma decimals:

Code: Select all

=VALUE(SUBSTITUTE(GETYAHOO(A1;B1);".";MID(PI();2;1))
That one converts point decimals into values regardless of the current locale setup.
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
husky55
Posts: 5
Joined: Thu Jun 18, 2015 4:42 pm
Location: Connectcut

Re: [Solved] Any Alternatives to GETQUOTE?

Post by husky55 »

Villeroy wrote:
howdydooit wrote:So, to save people with my skill level a ton of time, the syntax is:
=VALUE(GETYAHOO(A3;21)) (This is for Open Office. Others are saying to replace the semi colon with a comma in Libre Office)
No, with the latest version it is simply =GETYAHOO(A3 ; 21) or =GETYAHOO(A3 , 21) because the latest version returns numbers. Old versions returned text.
Trust me I have spent lots of time before finding this forum. There are 2 versions of SMF, for LO and OO. I used both LO and OO The latest version SMF .70 does not return a number that I can copy and paste and perform operation on it. Try it and you will see. OO 4.11 version. It does return a number but that number does not work when you copy and paste and perform operation on it. SMF .7 works fine in LO 4.4.3. In OO, It returns an error when copy and paste and perform any operation Try it for yourself before posting.
Last edited by husky55 on Wed Jun 24, 2015 1:49 pm, edited 1 time in total.
OPENOFFICE 4.4.3 Win7
User avatar
Villeroy
Volunteer
Posts: 31361
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Solved] Any Alternatives to GETQUOTE?

Post by Villeroy »

I am not the maintainer of that extension. 4 months ago I added a tiny little bit of code to make it return numbers. If the extension returns text again, I won't do anthing about it.
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
husky55
Posts: 5
Joined: Thu Jun 18, 2015 4:42 pm
Location: Connectcut

Re: [Solved] Any Alternatives to GETQUOTE?

Post by husky55 »

Hey Villeroy, we do not always have to agree on everything but I am grateful that you shared your knowledge on this forum. Hopefully the next SMF version will be compatible with both LO and OO and most importantly not break anything.

I understood your use of the comma as a separator in your application and therefore your need to do a conversion.
OPENOFFICE 4.4.3 Win7
User avatar
santer
Posts: 22
Joined: Sun Mar 07, 2010 7:43 pm

Re: [Solved] Any Alternatives to GETQUOTE?

Post by santer »

madsailor wrote:
jaquack wrote: Sooooo... I don't understand what you mean by "install the extension to LIBREOFFICE". I have to install LIBREOFFICE instead of Open Office? And then install an extension (or mod?) that allows me to use the "getquote" command? And at that point, I can use a comma to separate "A1" from "29", instead of a semicolon?

Thanks for your help.
The GETQUOTE extension is no longer developed or supported by it's creator; it has been succeeded by the SMF extension. SMF will function in OpenOffice with this version: https://drive.google.com/file/d/0B8TbA- ... view?pli=1, or in LibreOffice with this version: https://github.com/madsailor/SMF-Extension/releases.

Please read the description here to get an idea of the functionality and how to use the extension: https://github.com/madsailor/SMF-Extension.

NOTE: This is where the difference comes in - when using the OO version your input should look like "=GETYAHOO('XOM';21)", while when using the LO version it should look like "=GETYAHOO('XOM',21)". Note the semicolon vs. comma.

Also, the upcoming release will support both LO and OO out of the box, consolidating the two versions I linked above; however the semicolon vs comma difference will remain..
madsailor
I downloaded your fix for SMF and still can't get it to work on OO. Works find on LO. What gives?
open office 3.4
win 7
User avatar
Villeroy
Volunteer
Posts: 31361
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Solved] Any Alternatives to GETQUOTE?

Post by Villeroy »

santer wrote:madsailor
I downloaded your fix for SMF and still can't get it to work on OO. Works find on LO. What gives?
Install LO
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
User avatar
santer
Posts: 22
Joined: Sun Mar 07, 2010 7:43 pm

Re: [Solved] Any Alternatives to GETQUOTE?

Post by santer »

Villeroy wrote:
santer wrote:madsailor
I downloaded your fix for SMF and still can't get it to work on OO. Works find on LO. What gives?
Install LO
Villeroy
I have installed LO and SMF works fine. But with OO I get errors.
open office 3.4
win 7
User avatar
Villeroy
Volunteer
Posts: 31361
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Solved] Any Alternatives to GETQUOTE?

Post by Villeroy »

It is an extension for LibreOffice which is obviously no longer maintained for OpenOffice.
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
User avatar
santer
Posts: 22
Joined: Sun Mar 07, 2010 7:43 pm

Re: [Solved] Any Alternatives to GETQUOTE?

Post by santer »

Villeroy wrote:It is an extension for LibreOffice which is obviously no longer maintained for OpenOffice.
Do you know if there are any plans to maintain it? Also, for LO, are there any plans to accommodate array processing with SMF?
open office 3.4
win 7
carl.c.wheeler
Posts: 1
Joined: Fri Feb 26, 2016 11:38 pm

Re: [Solved] Any Alternatives to GETQUOTE?

Post by carl.c.wheeler »

I'm having a hard time finding the right input to retrieve a simple index price (DJI) in LibreOffice Calc.

What I have tried are:

=VALUE(GETYAHOO("DJI",21))
=VALUE(GETYAHOO("^DJI",21))

But these don't work. The above format works for stock prices, just not the indexes.

Thanks.
OpenOffice 2.4
User avatar
Villeroy
Volunteer
Posts: 31361
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Solved] Any Alternatives to GETQUOTE?

Post by Villeroy »

This will break every time when Yahoo makes changes to its website. This may be intended by Yahoo.
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
User avatar
santer
Posts: 22
Joined: Sun Mar 07, 2010 7:43 pm

Re: [Solved] Any Alternatives to GETQUOTE?

Post by santer »

Villeroy wrote:This will break every time when Yahoo makes changes to its website. This may be intended by Yahoo.
Any plans to fix this so it works again?
open office 3.4
win 7
immo2014
Posts: 2
Joined: Sat Mar 12, 2016 4:47 pm

Re: [Solved] Any Alternatives to GETQUOTE?

Post by immo2014 »

for all germans with libreoffice 5 try this for e.g pbb.de

=WERT(WECHSELN(GETYAHOO("pbb.de";21);".";","))
OpenOffice 3.1 on Windows Vista
Post Reply