如何从Google Finance在Google表格中仅获取NSE股票的开盘和收盘价格?

huangapple go评论71阅读模式
英文:

How can I get NSE stocks only opening and closing price in Google sheet from Google finance?

问题

=INDEX(GOOGLEFINANCE(B2, "open", A2), 2, 2)

Column B has stock symbols mentioned.

but it is always showing

Error When evaluating GOOGLEFINANCE, the query for the symbol:
'RELIANCE.NS' returned no data.

or shows

#N/A

Tried these other different formulas but didn't work.

=IMPORTXML("https://www.investing.com/equities/reliance-industries-historical-data", "//table[@id='curr_table']/tbody/tr1/td2")

=INDEX(IMPORTXML("https://www.moneycontrol.com/financials/relianceindustriesindianagrasp/opening-priceRI", "//div[@class='value_txtfl fl gL_10 uc']/span1"),1)

英文:

I tried using this formula for cells to enter the opening and closing price for mentioned stocks in google sheets.

=INDEX(GOOGLEFINANCE(B2, "open", A2), 2, 2)

Column B has stock symbols mentioned.

but it is always showing

> Error When evaluating GOOGLEFINANCE, the query for the symbol:
> 'RELIANCE.NS' returned no data.

or shows
>
> #N/A

Tried these other different formulas but didn't worked.

=IMPORTXML("https://www.investing.com/equities/reliance-industries-historical-data", "//table[@id='curr_table']/tbody/tr[1]/td[2]")

-

=INDEX(IMPORTXML("https://www.moneycontrol.com/financials/relianceindustriesindianagrasp/opening-priceRI", "//div[@class='value_txtfl fl gL_10 uc']/span[1]"),1)

答案1

得分: 1

你可以尝试使用股票代码NSE:RELIANCE

如何从Google Finance在Google表格中仅获取NSE股票的开盘和收盘价格?

英文:

Can you try with the ticker name NSE:RELIANCE

如何从Google Finance在Google表格中仅获取NSE股票的开盘和收盘价格?

答案2

得分: 1

似乎错误与查询有关:RELIANCE.NS

与Google文档中的示例用法进行比较,我已经测试了使用NSE:RELIANCE,它有效。

=GOOGLEFINANCE("NSE:RELIANCE", "all", 今天()-(3), 今天(), "DAILY")

参考链接:

英文:

It seems that the error is related to the query: RELIANCE.NS

Comparing the sample usage from Google documentation, I've tested using NSE:RELIANCE and it worked.

=GOOGLEFINANCE("NSE:RELIANCE", "all", TODAY()-(3), TODAY(), "DAILY")

Reference:

huangapple
  • 本文由 发表于 2023年6月5日 20:35:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/76406480.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定