Using Web Queries to Import Data to Excel
The other day, I bumped upon this powerful and really simple tool in excel. I must say, its one of those gems that is kept inside excel. I felt like a kid getting excited discovering a candy in his pant pockets. Well, to the point now!
Often, business data and analytics deal with lots of Ctrl+C, Ctrl+Vs. For example you might be downloading a financial statement from Google Finance or a rating for a select list of companies form Fitch! or AM Best or even simple top 250 movies list from IMDB. What we generally do is open the web page and copy/paste the data on to our excel sheets. In the end when we perform the analysis and conclude something, it is always "as of some past date". Well, with the help of Web Queries, the analytics can be real time, well, almost.
5 Steps to using Web Queries to Import Data to Excel Sheets:
- First up, locate [Just locate, you need not load that page in excel] the site / webpage you want the data to be copied from. Remember, this should be on public domain without login access. Simply put, if you type the URL in the browser, the page should load, no matter whether you are logged in to that site or not. (Ex: IMDB Top 250 Movies)
- Open Excel. Go to Data -> Import External Data -> New Web Query

- In the Dailog box for webquery enter the URL you want and say 'Go'.

Select the table you want like this. The table outline would turn 'Green' or something differant. Click on it and you would see the mark becoming like a tick like this.
- Say Import. In the next dailog enter the starting cell. You can click on the properties to change the behaviour of webimport, but it may not be necessary. While the import is going on you see a cyan colored globe trotting around itself on the status bar. If you cant, blame your office vendor.
- Once the table is loaded, you can right click anywhere on it and say Refresh Data! and it would fetch the new data from web automatically.
Potential Applications of Web Queries Data Import Tool:
- Automated Portfolio Managers: Enable automatic refresh on File open and load MF, Share price related data from public sources.
- Realtime graphs, Charts and dash boards: You might have some application running on your LAN and generating data. Now assume there is a way to convert such data into HTML on the fly. Bingo! you dont have to copy paste the data to excel now. Just link up once and you are done.
- So many more, I think of almost anything and I see a possibility of using Web Query Imports to simplify that task.

12 Comments:
What to do when the web page has Login Page?
By
Ilan Leizgold, at 11/21/2006 03:37:00 AM
as I said, this technique is for the pages available on public domain. If the page can be accessible from cookie based login then i think it might work. But if doesnt, then I think you have to use different technique altogether...
By
Chandoo, at 11/28/2006 10:00:00 PM
Good and Imp. Information.
By
Satya Prakash Karan, at 7/11/2007 09:43:00 AM
Hi,
Once again after crash Nifty has started going up. Now we suggest all rises should be used as an opportunity to exit old long positions.
This bull run will continue for few more days. Overall market is in bearish mood as in medium term its just a small rally due to short covering
and result season.
Happy Trading,
ShareGyan
By
share, at 9/27/2008 12:06:00 AM
Thank you very much for this tip - it has saved me a lot of time!!!
By
Emir, at 2/16/2009 06:59:00 AM
This post has been removed by the author.
By
Emir, at 2/16/2009 07:00:00 AM
This blog is nice and informative,its our pleasure to post a comment on this blog created by the webmaster
Now as such we had seen in the month of Feb'09 that volitality was very much there considering the various factors deciding the movement of the Indian Stock Market
Now in the coming Month of March'09 which is also the year's closing period,also the important Policies would might be declared around the world will be deciding the movement of Indian Stock Market
Happy Trading a Head
Queries are welcomed
09871142419
09212663485
Knowyourprofit@gmail.com
KnowYourProfit
By
KnowYourProfit, at 2/26/2009 02:30:00 AM
This blog is quite nice and informative, it is our pleasure to post a comment on this usefull blog created by a webmaster
Now as such we all know that in India Elections are just around the corner which would inturn effect the movement of the
Indian Stock Market which means the time has come when a common man should start thinking of investing in the Indian Share Market
which would help him to increase the invested amount because one should not avoid the Opportunities come in Daily Life
We welcome your Quieries at
KnowYourProfit
By
KnowYourProfit, at 6/04/2009 12:31:00 AM
I have an issue wherein the Refresh does not work on file open. However if i do the refersh after open, it works fine.. Any clue what's the problem
By
hram, at 6/25/2009 06:27:00 AM
We are sell wow gold and wow power leveling wow gold
By
reyt, at 7/13/2009 12:35:00 AM
works in StarCalc and OpenOfficeCalc also...
Insert
Link to external data
(insert url)
then wait while it loads in the URL
voila, there it is
I use it for NHL score updates to my fantasy betting book 'sheet'
By
Sniper Boss, at 10/29/2009 08:03:00 AM
One of the best tutorials I have seen on Web Queries. Showed me exactly what I was looking for! Thanks a lot!
By
Shripad, at 11/05/2009 03:14:00 AM
Post a Comment
<< Home