简体   繁体   English

Excel:Yahoo Finance问题涉及值以及如何从在线CSV自动更新单元格

[英]Excel: Yahoo Finance issue with values and how to automatically update cell from online CSV

Yahoo Finance has a fancy feature that allows you to download a CSV file with some information about stocks you choose. Yahoo Finance具有精美功能,可让您下载CSV文件,其中包含有关所选股票的一些信息。 Using this format 使用这种格式

http://finance.yahoo.com/d/quotes.csv?s=STOCK1+STOCK2&f=INFO_NEEDED

&f= accepts parameters according to this table. &f=根据表接受参数。 For example, to get the minimum price of titles UCG.MI and ISP.MI I use: 例如,要获取标题UCG.MI和ISP.MI的最低价格,我可以使用:

http://finance.yahoo.com/d/quotes.csv?s=UCG.MI+ISP.MI&f=g

1) The problem is that I get 1)问题是我得到了

66550
24240

While respectively the min prices are 6,6550 and 2,4240 (commas/dots are missing..). 最低价格分别为6,65502,4240 (逗号/点缺失。)。 Why? 为什么? How can I get the "right" values? 如何获得“正确的”值?

2) How can I import these values into Excel (and having the cells updated every X minutes re-grabbing the values from the CSV online source)? 2)如何将这些值导入Excel(并使单元格每隔X分钟更新一次,以便从CSV在线源重新获取值)? I tried with "Data"-"From web" but didn't work.. 我尝试使用“数据”-“来自网络”,但是没有用..

I tried what you said and for it works perfecty fine in my case. 我尝试了您所说的内容,在我看来,它可以很好地工作。

1) I think this is the way the cells are formatted in your case - Perhaps make sure they are numbers rather than general or something else. 1)我认为这是单元格格式化的方式-也许要确保它们是数字而不是通用或其他形式。

2) There are refresh controls under the cells that have this date. 2)具有该日期的单元格下有刷新控件。 Just go into a cell you defined the Web Query for and you will see the Refresh All button highlighted. 只需进入为Web查询定义的单元格,您就会看到“全部刷新”按钮突出显示。 You can use that to manually update the entire query or individual cells, but if you select the drop down go to 'Connection Properties' and a whole menu with option will appear (Background Refresh, Refresh every xx minutes', etc.). 您可以使用它来手动更新整个查询或单个单元格,但是如果选择下拉菜单,请转到“连接属性”,然后会出现一个带有选项的整个菜单(“背景刷新”,“每隔xx分钟刷新”,等等)。

Let me know if that's what you need? 让我知道这是否是您需要的吗?

KR Davy KR戴维

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM