Tough excel problem: Lookup Array and use sumproduct on it

Nirmolak

New Member
Joined
Jul 30, 2015
Messages
1
I am trying to lookup a column array based on a certain criteria and then sumproduct the values in that column array with another set of values for the answer.

In the sheet, there are certain players who are being scouted. Their stats (games, goals, assists, etc.) have been presented by season (2004-2006).
GamesGamesGamesGoalsGoalsGoalsAssistsAssistsAssistsShotsShotsShotsDribblesDribblesDribbles
Date200420052006200420052006200420052006200420052006200420052006
Ronaldinho3430191812415117105965521118798
Messi2732371726441316992111194133169192
Eto'o3632253128199571731581181068856
Ronaldo282725272926654166179158152161156
Zidane383028648181410715449186157134
Figo3732241412912139857852169137113

<tbody>
</tbody>

The scouting team runs a fixed set of exercises (judging different aspects) to scout the players. The length of each scouting exercise is tied to the length of the total scouting period (row 1), e.g. exercise 1 will be completed in ~14% of the total scouting period's time (0.43 years if scouting period is 3 years). The exercise rating is submitted immediately on completion of an exercise and the "rating occurs in season" row depicts the year no. when the ratings are submitted. The 1 is just to see the attributes being scouted.
Total scouting period (years)3
Exercise 1Exercise 2Exercise 3Exercise 4Exercise 5Exercise 6
Length of scoutings (as % of scouting period)14%21%29%7%14%14%
Length of scoutings (years)0.430.640.860.210.430.43
Scouting end time (years)0.431.071.932.142.573.00
Rating occurs in season number1
223
3
3
Stamina (Games)11
Finishing (Goals)11
Vision (Assists)11
Shooting (Shots)11
Control (Dribbles)1

<tbody>
</tbody>

In the output sheet, I need to show the scout rating for a given season number, e.g. in season 1, the rating submitted for Ronaldinho will be = goals (18*1) + dribbles(211*1) = 219
the formula i am using for this is: SUMPRODUCT(CHOOSE({1;2;3},AY4,CI4,DS4),Ratings!$B$46:$B$49)
but if i change the scouting period to 2 years (below), the rating for ronaldinho becomes: Exercise1(18*1 + 211*1) + exercise2(15*1 + 105*1). I want to build a formula that can dynamically capture the columns which correspond to season 1 once the scouting period changes

Total scouting period (years)2
Exercise 1Exercise 2Exercise 3Exercise 4Exercise 5Exercise 6
Length of scoutings (as % of scouting period)14%21%29%7%14%14%
Length of scoutings (years)0.290.430.570.140.290.29
Scouting end time (years)0.290.711.291.431.712.00
Rating occurs in season number1
12222
Stamina (Games)11
Finishing (Goals)11
Vision (Assists)11
Shooting (Shots)11
Control (Dribbles)1

<tbody>
</tbody>

Whats important is that the year (2004/05/06) for which the player stats are pulled corresponds to the season number (1/2/3).

If someone could help me find a formula for this that i can apply to a wider dataset as well, i would really appreciate it. i do not want to change the format of the data since the wider dataset is much larger than this.

Thanks!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,214,593
Messages
6,120,434
Members
448,961
Latest member
nzskater

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