我正在使用Google表格从Google财经获取股票数据,如何获得年度百分比变化?
答案 0 :(得分:1)
对于Google整整一年,请尝试:
=100*(googlefinance("GOOG")/index(googlefinance("GOOG","price",today()-365),2,2)-1)
或者,从今年至今:
=100*(googlefinance("GOOG","price")/index(googlefinance("GOOG","price",date(2018,12,31)),2,2)-1)