ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Get Stock Quotes Via Cell Look Up (https://www.excelbanter.com/excel-programming/336475-get-stock-quotes-via-cell-look-up.html)

penguin13

Get Stock Quotes Via Cell Look Up
 
1) Is there any way I can use the data from a cell - say B2, which contains a
stock symbol - to look up the current price for that stock symbol and insert
only the price in cell J2?

2) If 1 is possible, can I refine it such that it will only perform the look
up if cell G2='Y'?

3) Can this then be applied to every row of the worksheet?


Tom Ogilvy

Get Stock Quotes Via Cell Look Up
 
Lookup where?

--
Regards,
Tom Ogilvy

"penguin13" wrote in message
...
1) Is there any way I can use the data from a cell - say B2, which

contains a
stock symbol - to look up the current price for that stock symbol and

insert
only the price in cell J2?

2) If 1 is possible, can I refine it such that it will only perform the

look
up if cell G2='Y'?

3) Can this then be applied to every row of the worksheet?




Vacation's Over

Get Stock Quotes Via Cell Look Up
 
microsoft web site
search "excel stock query"
Learn the basics of Web queries
A great way to learn the basics of Web queries is to look at one of the
sample queries included with Excel.

Using a sample Web query
The MSN® Money Central„˘ Investor Stock Quotes Web query included with Excel
lets you insert the latest stock quotes into your spreadsheets. Just use the
Import Data command (Data menu, Import External Data) and select MSN
MoneyCentral Stock Quotes as your data source. For the parameter value, use
the symbol of any stock you're interested in. (For example, to get Microsoft
stock quotes, you would type MSFT.) After you create the query, you can
refresh its value at any time to get a new quote.

Do you want the rest in formula or vba code?

"penguin13" wrote:

1) Is there any way I can use the data from a cell - say B2, which contains a
stock symbol - to look up the current price for that stock symbol and insert
only the price in cell J2?

2) If 1 is possible, can I refine it such that it will only perform the look
up if cell G2='Y'?

3) Can this then be applied to every row of the worksheet?


penguin13

Get Stock Quotes Via Cell Look Up
 
Yes, I want to get stock quotes from the internet. I haven't used web queries
before, but it looks like now might be the time to try them out.

I'll have to use formula since I've never used vba before.

Thanks!



All times are GMT +1. The time now is 08:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com