Excel Web Query – What in the world is that? If you are like the other 99.9% of MS Excel users, you probably have never heard of microsoft excel web queries
Excel web queries are powerful! Web queries strips web pages of useless stuff and gives you access to the essential information. You can then use Excel formulas (like =A1/B2) to work directly with the data you’ve downloaded. Even one can build realtime data without prior knowledge of Programming.
Web queries can be used for importing stock quote data into Excel. For rapidly changing data like stock quotes, the web queries can be set to automatically refresh every 1,3,5,20,… minutes.
With a web query, you can set up a program that will automatically gather up-to-the second refreshed data from the web every time you open the spreadsheet. Here is an example to build a simple application that extracts index data from nseindia.com and auto refreshes every 1 minute.
To start, use Data – Import External Data – New Web Query.
[wp_ad_camp_5]
A mini-browser opens inside of Excel. Initially, it will display your default Internet Explorer home page.
Use the mini-browser to navigate to the web page containing data that you would like to download. type www.nseindia.com into the address bar in the Excel browser. Click Go, the page loads. You will notice that there are many yellow arrows on the page. These arrows point to each table on the page. The nseindia.com page has a lot of tables. Some web pages might just have one arrow, to grab the whole page. Click on a yellow arrow to select that table. Once you select the table(s), the yellow arrow(s) turn to green checkmarks. When you click the Import button, the Import Data dialog is displayed. By default, the data will be imported at the current cell pointer location.
Auto Refresh Feature
Move the cell pointer so that it is selecting one of the cells inside the imported data range. And Now go to
Data->Import External Data->Data Range Properties
There are many good settings here. In this case, I would suggest:
- Refresh every 1 minute
- Refresh data on file open
- Insert entire rows for new data, clear unused cells
- Fill down Formulas in columns adjacent to Excel data
With these settings, your Excel Sheet will automatically update the data every 1 minute from the web .
Its one among the kids stuff…….. Be a good kid!!!!
thanx rajandran for this article 🙂
thanks a lot yaar
good artcle. but i cannot download the nseindia page. i am using office 2000. do ypu need to [email protected]
one of the best updates in your blog… you have shared something which is going to ease life of many.. keep sharing ways and methods you use.
@Naren.It works good with Office 2003 and Office 2007.Try with it
Great Rajendra,Good Work,I really like your Excel Spread Sheet : Viral Pala
Thanks Every one for your Encouragement
Rajendra,Thanks once again. Few queries…Can we import data data from multiple sources into one single spreadsheet? Also can you suggest any online resources to enhance this knowledge.
Thanx dude.. very well taught!!..you made my day!!Cheers!!
@MustafaYes you can get data from multiple sources.Its afterall a easy game
Thanx alot sir for sharing such a wonderful knowledge… Its really being very very informative..
Thanks a lot man UR post is of great help.
GOODLUCK TO SMART KIND AND GOOD HEARTED TEACHER CREECH KID Choudri
How does one import data for 2-3 stocks please.I got the nse page but how to get a specific stocks data and then from there into amibroker?Thanks in advance
Thanks Rajendran for listing this link in vfmdirect forumBala
Hi,Rajendran how to get the data for 2-3 stocks and then get this data into amibroker.Thanks,Sudhin
hi this is good,if we give 1 minute refresh.old data delet and new data there.how to save old data in spreedsheet?
Rajandran,
You are genius as always.But very few people share it with others & ur one of them.I’m still not succeeded in this exercise.No values coming into cells.It will be too much asking for u but what r the next steps.
Amirishali
Thanks thanks a lot, it is very much helpfull to one and all.
Hi
It was a great info from your website.
I tried the same method on this SGX website hoping to extact prices from the live feeds but it doesnt seems to work
http://www.sgx.com/wps/portal/marketplace/mp-en/prices_indices_statistics/securities/reits
Can you advice me why it doesnt work on this website? I tried http://www.nseindia.com and it works.
Regards
TX
@TX
It SGX page look like a ajax content. probably because of that excel may fail to fetch the data.
like nse50 , can v get any script live data into excel?
Dear Market Calls,
I am looking out for someone to help me set up EXCEL Programming to fetch live intraday nifty (open, high, low, close) 1 minute and 5 minute
Do you know anyone who can help me?