SUMPRODUCT function using columns that match criteria across different sheets

DotAGenius

New Member
Joined
Jan 9, 2019
Messages
7
Hi all!

First time posting here.

I am trying to produce a spreadsheet to see an array of "Weighted Scores" based on different criteria.
If anybody plays FIFA, this might be easier to understand.

Players have "Attributes" like Shooting, Passing, Defending, and Dribbling.
You can assign "Styles" to players that give bonuses like +15 to Shooting, +20 to Defending, or +10 to both Shooting and Passing, etc.
I also created "Archetypes," such as a "Wing Player" who would benefit from having good Shooting and Passing, but not so much from Defending.

On the first sheet, I have a list of Players and all their Attributes. For example, it would look like this:
Player APlayer BPlayer CPlayer D
Shooting80709050
Passing80907050
Defending20205090
Dribbling40202050

<tbody>
</tbody>

On the second sheet, I list out what the Styles do. For example, it would look like this, to indicate what bonuses each Style gives (e.g. applying Style Z to a Player would give them +20 to Dribbling):
Style WStyle XStyle YStyle Z
Shooting15000
Passing01000
Defending00150
Dribbling55020

<tbody>
</tbody>


On the third sheet, I list out the Archetypes and how important different Attributes are for each respective Archetype (out of 1.00). For example, it would look like this:
Archetype 1Archetype 2Archetype 3Archetype 4
Shooting0.500.50
Passing0.50.6500
Defending0000.8
Dribbling00.350.50.2

<tbody>
</tbody>

Phew, ok! So now that all that's out of the way, this is what I hope to accomplish.

I want to be able to quickly determine the best Style/Archetype combination for every Player based on Weighted Scores for each combination. So far, I have been manually selecting each Archetype and each Style and comparing them using drop-down lists and SUMPRODUCT. For example, Player A with Style W equipped and playing as Archetype 1 would be the SUMPRODUCT of (the Array under Player A + Array under Style W (to get total Attributes)) * (the Array under Archetype 1) to get one Weighted Score. In this case, it would be [95,80,20,45] * [0.5,0.5,0,0] to get a Weighted Score of 241.

On my fourth sheet, this is what I have (with A1 being a drop-down list of all Players):
Player 1Archetype 1Archetype 2Archetype 3Archetype 4
Style W241
Style X
Style Y
Style Z

<tbody>
</tbody>

I want to see the Weighted Score per each Style/Archetype combination, so I can quickly determine how this Player is best utilized.
The problem I am facing is finding a way to locate the Attributes for the Player selected from the list in A1, and then using that as the first part of the first Array.
I tried to do some sort of SUMPRODUCT function with MATCH, but I couldn't figure out how to do it in a robust manner.

If anybody has a solution, I would be extremely grateful!

Thank you in advance!
 
Genius!

Thanks Marcelo.

Quick question, does it have to be an array formula because it checks each individual entry in the array?
 
Upvote 0

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Must be an array formula because of this condition
IF (Array1+Array2>99,99,Array1+Array2)
that is
IF({105;80;20;45}>99,99,{105;80;20;45}) results in {99;80;20;45}

M.
 
Upvote 0

Forum statistics

Threads
1,215,686
Messages
6,126,202
Members
449,298
Latest member
Jest

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