Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

I am having trouble having an updated daily GOOGLEFINANCE output

$
0
0

I'd wish to have an updated 1-week price change of the current stock, but I can't set the date parameter to a value and set it a week back, and I can't use an updating date from another cell. I just keep getting told parameter 5 value is Invalid. The current formula that I have attached is being used and is supposed to function off of cell b4 which contains: =DATEVALUE(TODAY(). I thought once the updated current date was converted into a date after having 7 days subtracted from it it would be a daily updated historic value from a week ago but it doesn't seem to work. What I originally attempted was just the function DATE(B5) with cell B5 containing: TO_DATE(B4-7). But the function DATE() requires 3 numerical values to produce a date. So I figured I would try DATEVALUE() but that still didn't work.

=(GOOGLEFINANCE("NASDAQ:GOOG", "price")-Index(GOOGLEFINANCE("NASDAQ:GOOG", "price",TO_DATE(B4-7),2,2)/Index(GOOGLEFINANCE("NASDAQ:GOOG", "price", TO_DATE(B4-7),2,2))))


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>