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 create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,215,220
Messages
6,123,693
Members
449,117
Latest member
Aaagu

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