Home » Spreadsheet

Simple Financial SpreadSheets – Kids Stuff

10 February 2009 1,466 views 20 Comments

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.

Webquery

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!!!!

Related Readings and Observations

  • How to Extract Data from Nseinda.com using Google Docs
    Here is a short and very simple video tutorial about how to extract remote data from a webpage(nseindia.com) into your google spreadsheet. It also describes how to share the Extracted table content to the external world....
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

20 Comments »

  • geniusjaggu said:

    thanx rajandran for this article :)

  • MJ said:

    thanks a lot yaar

  • Naren said:

    good artcle. but i cannot download the nseindia page. i am using office 2000. do ypu need to upgrade?.naren309@gmail.com

  • Mustafa said:

    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.

  • Rajandran said:

    @Naren.It works good with Office 2003 and Office 2007.Try with it

  • Viralpala said:

    Great Rajendra,Good Work,I really like your Excel Spread Sheet : Viral Pala

  • Rajandran said:

    Thanks Every one for your Encouragement

  • Mustafa said:

    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.

  • Anonymous said:

    Thanx dude.. very well taught!!..you made my day!!Cheers!!

  • Rajandran said:

    @MustafaYes you can get data from multiple sources.Its afterall a easy game

  • Nishant said:

    Thanx alot sir for sharing such a wonderful knowledge… Its really being very very informative..

  • Anonymous said:

    Thanks a lot man UR post is of great help.

  • choudri said:

    GOODLUCK TO SMART KIND AND GOOD HEARTED TEACHER CREECH KID Choudri

  • Anonymous said:

    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

  • Nandi said:

    Thanks Rajendran for listing this link in vfmdirect forumBala

  • men said:

    Hi,Rajendran how to get the data for 2-3 stocks and then get this data into amibroker.Thanks,Sudhin

  • abbas said:

    hi this is good,if we give 1 minute refresh.old data delet and new data there.how to save old data in spreedsheet?

  • Amirishali said:

    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

  • How to Convert your MS Excel into Dynamic Nifty Heat Map | Marketcalls said:

    [...] is a simple Web Query Based Excel Spreadsheet, Which converts your MS Excel into Dynamic Nifty Heat Map with an auto [...]

  • sudheer said:

    Thanks thanks a lot, it is very much helpfull to one and all.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.

Optionally add an image (JPEG only)