Create a query appending three queries

TopLearner

Board Regular
Joined
Feb 25, 2022
Messages
57
Office Version
  1. 365
Platform
  1. Windows
Hello all,


I want to create a table on a spreadsheet where I can combine multiple tables from the source below:

Almeria statistics, latest results and form 2022/2023


I go to data then from web, then I click on the folder

1662729531249.png


Then, transform data and my goal is that the table below, shows the same data together as the three other queries (please see the right-hand side table at the bottom of the post)

1662729547453.png



1662729558392.png
1662729563964.png


Then, each week when I refresh the data after the football games, Id like my appended query above to get the right data.


Can you please help?

Thanks
Sanchez
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I thought my previous post already answered this? See...
It appears that you want the final table to have a 1st column heading of "Options" rather than "CURRENT SEQUENCES"...that is the only difference between my earlier suggestion and what is posted above. After you have loaded the three tables into Excel, note what the names of the tables are, and then use Power Query to create "connection only" queries for each of the three. Then in Power Query change the column heading names where necessary so that each table has headings of Options, Home, Away, Total. Then append all three tables. Adjust the append order in the Table.Combine command so that the results appear in the order desired.
 
Upvote 0
I thought my previous post already answered this? See...
It appears that you want the final table to have a 1st column heading of "Options" rather than "CURRENT SEQUENCES"...that is the only difference between my earlier suggestion and what is posted above. After you have loaded the three tables into Excel, note what the names of the tables are, and then use Power Query to create "connection only" queries for each of the three. Then in Power Query change the column heading names where necessary so that each table has headings of Options, Home, Away, Total. Then append all three tables. Adjust the append order in the Table.Combine command so that the results appear in the order desired.
Hi KRice,

Thanks for your help.

Will I have to change the queries headings each time the data on the source changes when refreshing the queries? For instance, for the first table will I have to replace "Options" with "CURRENT SEQUENCES" so it gets the most updated data?

My query

1662732909049.png


Table on the website

1662732932884.png



Thanks
Sanchez
 
Upvote 0
If I understand your question correctly, the answer is "no". If your source information on the web is consistent, you will create a query to pull those tables into Excel (you're already doing this). But within those queries, do one more thing: as one of the steps, change the column heading names so that each table has headings of Options, Home, Away, Total. That step will become part of the web scraping query so you should need to do this only once for setting up the query. Also, rather than loading each of the three tables to your worksheet, you may want to load the queries as "Connection only" so that you don't see them. Once you have the three source tables loaded into PQ as Connection only and you have a step in each of those queries to revise the column headings (so that they are all consistent), you will want to execute Home > Append Queries > Append Queries As New and add the three connection only queries to it in the order desired, and then load that appended query back into your worksheet as a table. After this initial setup, you shouldn't have to manually change the headings for subsequent updates.
 
Upvote 0
If I understand your question correctly, the answer is "no". If your source information on the web is consistent, you will create a query to pull those tables into Excel (you're already doing this). But within those queries, do one more thing: as one of the steps, change the column heading names so that each table has headings of Options, Home, Away, Total. That step will become part of the web scraping query so you should need to do this only once for setting up the query. Also, rather than loading each of the three tables to your worksheet, you may want to load the queries as "Connection only" so that you don't see them. Once you have the three source tables loaded into PQ as Connection only and you have a step in each of those queries to revise the column headings (so that they are all consistent), you will want to execute Home > Append Queries > Append Queries As New and add the three connection only queries to it in the order desired, and then load that appended query back into your worksheet as a table. After this initial setup, you shouldn't have to manually change the headings for subsequent updates.
Thanks KRice,

This is what I have done so I will ensure it works when the figures change on the data source.

Kind regards
Sanchez
 
Upvote 0
Are these the three tables you are interested in?
1662737034853.png
 
Upvote 0

Forum statistics

Threads
1,223,630
Messages
6,173,450
Members
452,514
Latest member
cjkelly15

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