Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use GOOGLEFINANCE(("CURRENCY:EURAUD")) function

This function:

GOOGLEFINANCE(("CURRENCY:EURAUD")) 

works well in Google Sheets, I have searched the web up and down for some documentation regarding this function and how it is used, the closest I've got was this

http://www.google.com/finance?q=EURAUD

Does anyone know how to use this one? or where to find documentation regarding this function?

like image 902
Ayyash Avatar asked Sep 26 '12 14:09

Ayyash


People also ask

How do you use GOOGLEFINANCE for CURRENCY?

Calculate the currency rate between two currenciesSelect a cell which you want to place the result, type this formula =GOOGLEFINANCE("CURRENCY:"&$A$4&B4) (in the formula, $A$4&B4 means to calculate the rate while converting USD to EUR). Then press Enter key, the result displays.

What is GOOGLEFINANCE formula?

Syntax. GOOGLEFINANCE(ticker, [attribute], [start_date], [end_date|num_days], [interval]) ticker - The ticker symbol for the security to consider. It's mandatory to use both the exchange symbol and ticker symbol for accurate results and to avoid discrepancies. For example, use “NASDAQ:GOOG” instead of “GOOG.”


2 Answers

The specific instructions for what you are looking for are in here: https://support.google.com/docs/answer/3093281

Remember your Google Spreadsheets Formulas might use semicolon (;) instead of comma (,) depending on Regional Settings.

Once made the replacement on some examples would look like this:

=GoogleFinance("CURRENCY:USDEUR") =INDEX(GoogleFinance("USDEUR","price",today()-30,TODAY()),2,2) =SPARKLINE(GoogleFinance("USDEUR","price",today()-30,today())) 

Those 3 cells would result in something like this:

Result of the 3 Google Spreadsheet formulas mentioned

like image 119
DavidTaubmann Avatar answered Sep 20 '22 06:09

DavidTaubmann


Exchange rate from Euro to NOK on the first of January 2016:

=INDEX(GOOGLEFINANCE("CURRENCY:EURNOK"; "close"; DATE(2016;1;1)); 2; 2) 

The INDEX() function is used because GOOGLEFINANCE() function actually prints out in 4 separate cells (2x2) when you call it with these arguments, with it the result will only be one cell.

like image 27
Pylinux Avatar answered Sep 19 '22 06:09

Pylinux