Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Returning a single cell from an array formula

I would like to get a single value, the closing price, from this formula:

=GoogleFinance("NASDAQ:AAPL", "close", "12/13/2012",  1, 1)

Instead this formula populates 2 header rows (Date, Close) then two values (the date, and closing value $529.69). Is there a way to get just the closing value returned and placed in the formula's cell?

like image 795
jcalfee314 Avatar asked Dec 14 '12 17:12

jcalfee314


1 Answers

You can use the INDEX function:

=INDEX(GoogleFinance("NASDAQ:AAPL";"close";"12/13/2012";1;1);2;2)

like image 190
AdamL Avatar answered Sep 20 '22 15:09

AdamL