ArrayFormula在Googlesheets中使用GoogleFinance从相邻列获得股票价格
我试图获取 A 列中从 A2 到 A5 的某些日期的股票价格。行数基于公式。所以我可能有从 A2 到 A50 的日期。获取我正在使用的股票价格的公式是 index(GOOGLEFINANCE("AAPL","price", datevalue(A2) ) , 2,2) 我可以将公式复制并粘贴到 B 列中,但我希望这是自动化的。我正在尝试使用 ARRAYFORMULA 但没有得到所需的结果。
我用过这个,我确信有一些语法错误 ARRAYFORMULA((A2:A5)(索引(GOOGLEFINANCE("AAPL","价格", datevalue(A2) ) , 2,2))) 我收到公式解析错误。有人可以帮忙纠正吗
I trying to get the stock price on ceratain dates that are in a colunm A from A2 to A5. The numbers of rows is based on a formula. So I might have dates from A2 to A50. The formula to get the stock price that I am using is index(GOOGLEFINANCE("AAPL","price", datevalue(A2) ) , 2,2)
I can copy and paste the formula in column B but I want this to be automated. I am trying to use the ARRAYFORMULA for it but not getting the desired results.
I used this and I am sure there is some syntax error
ARRAYFORMULA((A2:A5)(index(GOOGLEFINANCE("AAPL","price", datevalue(A2) ) , 2,2)))
I am getting formula parse error. Can someone please help correcting it
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试:
try: