Power Query From Webpage Multiple Pages

brent_milne

New Member
Joined
Jul 11, 2013
Messages
23
I am trying to do a query on a webpage table that has multiple pages. Example - www.webpage.com/page=1, www.webpage.com/page=2, etc. Do I have to make a separate query for each page or is there an easier way to get the data returned from all the pages. The tables are all setup the same on each page but sometimes there might be 200 pages that I need to query. Thanks for any help with this.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi,

You can turn your web query into a function. Once you load data for page=1, go to Power Query Editor, select your query and go to Advanced Editor. Modify the code as follows:

1584043671287.png


After you turn your query into a function, add a separate table with pageNumbers that you would like to call.

1584043800086.png


Go to Add Column > Invoke Custom Function >
1584043833906.png


This should successfully create Table results for each query. Click on any of the golden Table links to fully expand the results.
 
Upvote 0

Forum statistics

Threads
1,223,799
Messages
6,174,669
Members
452,576
Latest member
AlexG_UK

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top