Reputation: 25
please guide me.
I have trouble choosing the formula for the score column.
To better understand, I took a screenshot of my work environment.
Is there a solution?
Upvotes: 0
Views: 49
Reputation: 493
Slightly simplified version of BigBen's answer that doesn't required Dynamic Array formulas:
=SUMPRODUCT((Table1[[#Headers],[medal 1]:[medal 4]]="medal "&Table2[medal number])*(Table1[@[medal 1]:[medal 4]]*Table2[score]))
Upvotes: 2
Reputation: 152505
SUMPRODUCT with Simple LOOKUP:
=SUMPRODUCT(Table2[@[Medal 1]:[Medal 4]],LOOKUP(Table2[[#Headers],[Medal 1]:[Medal 4]],Table3[Medal],Table3[Score]))
Upvotes: 5