Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
ffice
ffice" /><o
></o
>
<o
></o
>
Just wondering if there is an array function on excel for the below problem or will I need to construct a macro.<o
></o
>
<o
></o
>
I have a work book with 22 worksheets. Worksheet 2 is the summary worksheet which summarizes data from worksheets 3 - 22. worksheet 1 is where i do my analysis, pulling info from the summary sheet. Only certain data is pulled from the summary sheet at any one time.<o
></o
>
<o
></o
>
Sheets 3-22 are named Arsenal, Aston Villa, ....Wigan Athletic - i.e. Premier League teams. Each of these contains results, opponents, goals etc relating to that team, which is fed into the summary sheet. Each worksheet is named after that team. Eg. The Arsenal data is contained in a worksheet named 'Arsenal!', and so on for each team.<o
></o
>
<o
></o
>
On my analysis sheet I have a data validation list where i click on which teams' info i want to compare. If i click on <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com
ffice:smarttags" /><st1:City w:st="on">Chelsea</st1:City> for example, i have a lot of lookup functions that pull <st1:City w:st="on"><st1
lace w:st="on">Chelsea</st1
lace></st1:City>'s info (results, goals, etc) from the summary sheet. If i change to arsenal, then the lookups will pull in arsenals data automatically from the summary sheet. The data validation list has the same name as each worksheet. Eg. <st1:City w:st="on">Chelsea</st1:City> is an option on the data validation list, there is also a worksheet named <st1:City w:st="on"><st1
lace w:st="on">Chelsea</st1
lace></st1:City>. This is the same for all 20 teams.<o
></o
>
<o
></o
>
<o
></o
>
The above works fine, but here is where it gets slightly more complicated. There is data specific to each team that cant be put into the summary sheet due to the long process it would involve. Each of these data sets are contained within the worksheet relating to that specific team. Eg. When I click on <st1:City w:st="on"><st1
lace w:st="on">Chelsea</st1
lace></st1:City> on my analysis sheet it pulls in the normal info from the summary sheet via lookups. I also want to pull in a certain range from the worksheet named '<st1:City w:st="on"><st1
lace w:st="on">Chelsea</st1
lace></st1:City>!', lets say A1:D10. If i changed my selection on the analysis sheet to Arsenal I would then need this to pull in the same range of data A1:A10 from the sheet named 'Arsenal!' as it did when <st1:City w:st="on"><st1
lace w:st="on">Chelsea</st1
lace></st1:City> was selected. This will also be conditional if certain criteria is met. Eg. If S1 (on analysis sheet) = "Yes" then go to worksheet('<st1:City w:st="on"><st1
lace w:st="on">Chelsea</st1
lace></st1:City>!').Range(A1:A10).select.copy go to analysis sheet paste special values in a selected range. if S1 = "no" then leave cells blank in selected range on analysis sheet.<o
></o
>
<o
></o
>
Is there a function that can use the name of my data validation selection as the sheet name that i want to look in to. Eg. if I select <st1:City w:st="on">Chelsea</st1:City> on my list in cell T2 (data validation list), can i have a function to look at T2 and then go to the worksheet named <st1:City w:st="on"><st1
lace w:st="on">Chelsea</st1
lace></st1:City> and pull in the data i need? If I change my list selection to Arsenal, the function will then go to the sheet named Arsenal and pull in the same data range but in this different worksheet ?<o
></o
>
<o
></o
>
<o
></o
>
If this makes no sense just ignore. I just bought a book on macros so will figure something out. If you have any ideas to speed me along that would be great.<o
></o
>
<o
></o
>
Cheers<o
></o
>
<o
></o
>
Mosiki.<o
></o
>
<o
></o
>
<o
Just wondering if there is an array function on excel for the below problem or will I need to construct a macro.<o
<o
I have a work book with 22 worksheets. Worksheet 2 is the summary worksheet which summarizes data from worksheets 3 - 22. worksheet 1 is where i do my analysis, pulling info from the summary sheet. Only certain data is pulled from the summary sheet at any one time.<o
<o
Sheets 3-22 are named Arsenal, Aston Villa, ....Wigan Athletic - i.e. Premier League teams. Each of these contains results, opponents, goals etc relating to that team, which is fed into the summary sheet. Each worksheet is named after that team. Eg. The Arsenal data is contained in a worksheet named 'Arsenal!', and so on for each team.<o
<o
On my analysis sheet I have a data validation list where i click on which teams' info i want to compare. If i click on <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com
<o
<o
The above works fine, but here is where it gets slightly more complicated. There is data specific to each team that cant be put into the summary sheet due to the long process it would involve. Each of these data sets are contained within the worksheet relating to that specific team. Eg. When I click on <st1:City w:st="on"><st1
<o
Is there a function that can use the name of my data validation selection as the sheet name that i want to look in to. Eg. if I select <st1:City w:st="on">Chelsea</st1:City> on my list in cell T2 (data validation list), can i have a function to look at T2 and then go to the worksheet named <st1:City w:st="on"><st1
<o
<o
If this makes no sense just ignore. I just bought a book on macros so will figure something out. If you have any ideas to speed me along that would be great.<o
<o
Cheers<o
<o
Mosiki.<o
<o