Searching for data from various sheets and dynamically creating a new sheet (VBA or Other)

mattadams84

Board Regular
Joined
Oct 30, 2016
Messages
54
Hello,

I am trying to create a workbook that creates a list of of football match fixtures with the prematch stats of the match.

I have an API that successfully pulls in data (the statistics) across multiple different sheets (1 sheet per league). The league statistics sheets have many many columns which contain statistics for the team's home matches, away matches, and a combination of the both (overall).

Each league has a unique numerical ID and each team has a unique numerical ID.

I then have another sheet that pulls in via the API a list of the todays fixtures. What l would like to achieve is to dynamically/automatically create a whole new sheet that has the list of the fixtures but also shows the correlating stats of each team. So I guess by using the ID's of the teams from the "todays fixture" sheet is searches through the other sheets, finds the relevant data and then generates a new sheet with all the fixtures and stats. Obviously it would need to work out who is playing at home and who away so it finds the relevant stats.

Is this possible in excel?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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