GOOGLE 财务表 returns 不同日期的相同股票价格
GOOGLE Finance Sheets returns same stock price on different days
我正在尝试 运行 在 GOOGLE 表格中进行 GoogleFinance
查询以获取同一股票的股价。我想在A列的不同行显示股票价格:
- 第 1 天,我将在单元格 A1 中输入公式
- 第 2 天,我将在单元格 A2 中输入公式
这是我需要在 A1 和 A2 中使用的基本公式:
=GOOGLEFINANCE("F", "price")
2017 年 12 月 11 日星期一,我在单元格 A1
中输入了这个公式,它在单元格 A1 中给出了 12.54。
周三。 2017 年 12 月 13 日,我在单元格 A2
中输入了这个公式,它在单元格 A2 中给出了 12.68,但它也将单元格 A1 从 12.54 更改为 12.68。所以,现在 A1
和 A2
显示相同的数字 - 12.68.
我要:
A1 = 12.54 // enter formula into this cell on Monday
A2 = 12.68 // enter formula into this cell on Wednesday
GOOGLEFINANCE()
可以吗?
GOOGLEFINANCE
函数接受一个日期或日期范围:
GOOGLEFINANCE(ticker, [attribute], [start_date], [end_date|num_days],
[interval])
ticker
- The ticker symbol for the security to consider.
attribute
- [ OPTIONAL - "price" by default ] - The attribute to fetch
about ticker from Google Finance. This is required if a date is
specified.
...
start_date
- [ OPTIONAL ] - The start date when fetching historical
data.
- If
start_date
is specified but end_date
|num_days
is not, only the
single day's data is returned.
end_date
|num_days
- [ OPTIONAL ] - The end date when fetching historical data, or the number of days from start_date
for which to return data.
interval
- [ OPTIONAL ] - The frequency of returned data; either "DAILY" or "WEEKLY".
- interval can alternatively be specified as 1 or 7. Other numeric values are disallowed.
示例:
GOOGLEFINANCE("GOOG", "price", DATE(2014,1,1), DATE(2014,12,31), "DAILY")
GOOGLEFINANCE("GOOG","price",TODAY()-30,TODAY())
GOOGLEFINANCE(A2,A3)
我正在尝试 运行 在 GOOGLE 表格中进行 GoogleFinance
查询以获取同一股票的股价。我想在A列的不同行显示股票价格:
- 第 1 天,我将在单元格 A1 中输入公式
- 第 2 天,我将在单元格 A2 中输入公式
这是我需要在 A1 和 A2 中使用的基本公式:
=GOOGLEFINANCE("F", "price")
2017 年 12 月 11 日星期一,我在单元格 A1
中输入了这个公式,它在单元格 A1 中给出了 12.54。
周三。 2017 年 12 月 13 日,我在单元格 A2
中输入了这个公式,它在单元格 A2 中给出了 12.68,但它也将单元格 A1 从 12.54 更改为 12.68。所以,现在 A1
和 A2
显示相同的数字 - 12.68.
我要:
A1 = 12.54 // enter formula into this cell on Monday
A2 = 12.68 // enter formula into this cell on Wednesday
GOOGLEFINANCE()
可以吗?
GOOGLEFINANCE
函数接受一个日期或日期范围:
GOOGLEFINANCE(ticker, [attribute], [start_date], [end_date|num_days], [interval])
ticker
- The ticker symbol for the security to consider.
attribute
- [ OPTIONAL - "price" by default ] - The attribute to fetch about ticker from Google Finance. This is required if a date is specified....
start_date
- [ OPTIONAL ] - The start date when fetching historical data.
- If
start_date
is specified butend_date
|num_days
is not, only the single day's data is returned.
end_date
|num_days
- [ OPTIONAL ] - The end date when fetching historical data, or the number of days fromstart_date
for which to return data.
interval
- [ OPTIONAL ] - The frequency of returned data; either "DAILY" or "WEEKLY".
- interval can alternatively be specified as 1 or 7. Other numeric values are disallowed.
示例:
GOOGLEFINANCE("GOOG", "price", DATE(2014,1,1), DATE(2014,12,31), "DAILY")
GOOGLEFINANCE("GOOG","price",TODAY()-30,TODAY())
GOOGLEFINANCE(A2,A3)