extracting data website
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Extracting data from a website

Extracting data from a website

resolvedResolved · Urgent Priority · Version 2007

replyReply Tue 9 Aug 2011, 15:44Delegate Jonathan said...

Jonathan has attended:
Excel VBA Intro Intermediate course

Extracting data from a website

Hi. I have a list of names in Excel.

1.John
2.Jane
3.Jenny
4.Jacob
....
....
50.James

On a website there is a spreadsheet with various bits information about these people (age, income, sex, children..). The names on the website are not in the same order as in the Excel spreadsheet. Is it possible to write a macro to extract a specific part of the website spreadsheet (eg. only the income column relating to the various people) into the excel spreadsheet?

Thank you in advance!

For upcoming training course dates see: Pricing & availability

replyReply Thu 11 Aug 2011, 15:23Trainer Anthony said...

RE: Extracting data from a website

Hi Jonathan, thanks for your query. This is possible, but will involve some coding. The following link runs you through a slightly different example of getting data from a website, but the basic principles of what you will have to do are the same.

http://www.mrexcel.com/tip072.shtml

My first stop however, would be to run a web query to the site to see if I could port the table of data directly into Excel. There's a good (2003 based) walkthrough here:

http://www.mrexcel.com/tip103.shtml

Look for Get External Data - From Web on the Data tab in Excel 2007. If you can get it into Excel that way the rest should be simple.

Hope this helps,

Anthony

Thu 18 Aug 2011: Automatically marked as resolved.

 

Please browse our web site to find out more about
ms excel training london and other Microsoft training courses.

Excel tip:

Change the Default Width of All Columns in Excel 2010

If you want to change the width of the columns in your Excel 2010 spreadsheet, making them either larger or smaller, here's how:

In the Cells group on the Home tab, click Format.

Hover over the section called Cell Size and a drop down list will appear, select Default Width from this list.

In the Standard Width dialog box, enter the size you want to set as the default width and click OK.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard