9
votes
Accepted
Remove Header from GOOGLEFINANCE query
Please try:
=query(GoogleFinance(""&G1&":"&H1; "price"; Stocks!A28; TODAY());"select * label Col1 '', Col2''")
QUERY
8
votes
How can I get GoogleFinance to see 1 year and 5 year return of a stock?
If the cell is formatted as a NUMBER:
=ROUND( ( GOOGLEFINANCE("GOOG","price") / index(GOOGLEFINANCE("GOOG","price", datevalue(today()-365) ) , 2,2) - 1 ) * 100 ,2)
Alternative:
=ROUND( ( ...
7
votes
5
votes
Automatically store updated GOOGLEFINANCE values with a script
Functions like GOOGLEFINANCE are only updated when the spreadsheet is open by a user, there isn't a Google Apps Script method that is able to do this. The closest is SpreadsheetApp.flush() but this ...
5
votes
Accepted
How to get close price for last date market was open?
A workaround that solves the above is getting the Close price for the stock for a range of days before and after the date in question, and then querying the result for the most recent price on or ...
4
votes
Google Finance API call for stock dividend (Yield)?
Try this:
=INDEX(SPLIT(INDEX(IMPORTHTML(CONCATENATE("https://finance.google.com/finance?q=", "JNJ"),"table",3),1,2), "/"),1, 2) * 0.01
3
votes
Google Finance Historical Data with Multiple Attributes?
=ARRAY_CONSTRAIN(GOOGLEFINANCE("NSE:"&A2, "all", TODAY()-($N$2), TODAY(), "DAILY"), 2, 4)
=QUERY(GOOGLEFINANCE("NSE:"&A2, "all", TODAY()-($N$2), TODAY(), "DAILY"),
"select Col2,Col3,Col4", -...
3
votes
Accepted
3
votes
Google Finance API call for stock dividend (Yield)?
To further help with this answer. I tried tb11's answer and did not work for me June 2019. It was the URL that was the issue. I picked another site with a simpler URL and it worked for me. Sample ...
3
votes
Accepted
Append Current Stock Stock Price to Historical Prices
The formula is failing because you are giving arrayformula() two expressions when it only expects one. One of the { array expressions } is also superfluous. It is probably easier to do this with ...
2
votes
How to add refreshed data to new column in Google Sheets
Whenever it refreshes, the data is copied as opposed to new data being
added. It seems like it is adding the formula itself to the
spreadsheet as opposed to putting in the value itself.
If I ...
2
votes
How can I get GOOGLEFINANCE to return only the historical price of a stock and not an array?
=INDEX(GoogleFinance("USDIDR", "PRICE", F530),2,2)
F530 = cell with date (formatted to date)
2
votes
How can I get ''OHLC'' data rather the Close only?
to get the whole set of Open | High | Low | Close | Volume you need to use one currency per the formula:
=GOOGLEFINANCE("USD", "ALL", TODAY()-1)
=GOOGLEFINANCE("EUR", "ALL", TODAY()-1)
another ...
2
votes
I want to get rid of google finance disclaimer
you can use Block element of Adblock Plus:
docs.google.com###waffle-disclaimer-content
2
votes
How can I use GOOGLEFINANCE to return a share price in a certain currency?
Welcome, Eric! Google Finance tracks exchange rates. The syntax is:
=GOOGLEFINANCE("CURRENCY:BRLCAD")
where BRLCAD is the two currencies, in this case Brazilian Real to Canadian Dollar, in ISO 4217 ...
2
votes
Accepted
GOOGLEFINANCE in Google Sheets to get high & low and timestamp of high/low from the day I took trade
You can use the following formula
=QUERY(GOOGLEFINANCE("NSE:"&C1&"", "ALL",C2 ,C3),"select Col1, Col3, Col4",1)
Functions used:
GOOGLEFINANCE
QUERY
2
votes
How to get a YTD dynamically in Google Sheets (Google Finance)?
I got it: just leave the year out.
Solution: =(GOOGLEFINANCE(C5,"price")/INDEX(GOOGLEFINANCE(C5,"close","01/01", today()),2,2))-1
1
vote
Accepted
GOOGLEFINANCE in Google Sheets to get high & low and timestamp of high/low
={"TSLA", MIN(INDEX(GOOGLEFINANCE("TSLA", "low", "7/23/2018", TODAY(), 1),, 2)),
VLOOKUP(MIN(INDEX(GOOGLEFINANCE("TSLA", "low", "7/23/2018", TODAY(), 1),, 2)),
{INDEX(GOOGLEFINANCE("...
1
vote
Google Sheets formula to find previous day high of a share price
I think this will help you
=INDEX( IF(ISNA(GOOGLEFINANCE("NSE:"&A2,"high",TODAY()-1))=TRUE, IF(ISNA(GOOGLEFINANCE("NSE:"&A2,"high",TODAY()-2))=TRUE, ...
1
vote
Google Sheets formula to find previous day high of a share price
use INDEX to filter it out like:
=INDEX(GOOGLEFINANCE("nse:"&O18, "high", TODAY()-2.1), 2, 2)
1
vote
Automatic currency conversion in Google Sheets
Other option is using the CurrencyConverter function from this Google Sheets add-on.
It is fast and and has simple syntax. For example,
=CurrencyConverter(100, "USD", "EUR", "...
1
vote
How can I have a 2nd function start in the cell after the output of the 1st function?
delete your A column and paste this into A3 cell:
={GOOGLEFINANCE("ASX:EXL", "close", TODAY()-470, TODAY());
QUERY(GOOGLEFINANCE("ASX:EXL", "close", TODAY()-470, TODAY()),
"select Col1 offset "&...
1
vote
Accepted
How to import historical open price in Google Sheets with GOOGLEFINANCE?
This actually kind of makes sense. If the 2nd parameter of GOOGLEFINANCE is "priceopen" it tries to fetch the open price but by adding a historical date to it DATE(2019,4,12) the 2nd parameter is ...
1
vote
googleFinance calculating the standard deviation of a stock over a time period
I liked iggy's answer but holidays at the beginning or end of the time periods can cause errors. Here's an updated version, again to calculate historical volatility over the last 50 trading days ...
1
vote
googleFinance calculating the standard deviation of a stock over a time period
Here is a formula for computing historical stock volatility using log price changes (returns) over the last 50 days (B is the ticker column):
=STDEV(arrayformula(LN(
query(GoogleFinance($B2,"...
1
vote
googleFinance calculating the standard deviation of a stock over a time period
I believe I figured it out.
It's:
=STDEV(INDEX(GoogleFinance("GOOGL","all",WORKDAY(TODAY(),-50),TODAY()),,3))
1
vote
Accepted
How to get Google Finance Intraday data into Google Spreadsheet?
=GOOGLEFINANCE() is appropriate. But you can also use IMPORTDATA()
1
vote
How to get close price for last date market was open?
INDEX(SORT(GOOGLEFINANCE("GOOG", "close", TODAY()-5, 6,1), 1, FALSE), 2, 2)
This will show the list of results in reverse, allowing one to pick off the top of the list (last valid ...
1
vote
Accepted
Automatically store updated GOOGLEFINANCE values with a script
As the yahoo and google finance API's to use them from google apps script are deprecated, I think the only way to work around it is to generate googlefinance queries from the script as strings and ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
google-finance × 65google-sheets × 63
formulas × 23
google-sheets-arrayformula × 8
google-sheets-query × 4
google-apps-script × 3
google-sheets-dates × 3
vlookup × 3
google × 2
importxml × 2
xpath × 2
google-apps-script-triggers × 1
import × 1
google-sheets-cell-format × 1
importhtml × 1
google-sheets-sparkline × 1
bitcoin × 1