How many times occurs a team from column A in column D and then multiply and sum

strooman

Active Member
Joined
Oct 29, 2013
Messages
333
Office Version
  1. 2016
Platform
  1. Windows
I want to know if this is possible with one formula in C13.
This is the scenario.
How many times occurs a team from column A in Column D and then multiply with the points in column B.
Column C is just the intermediate step for clarity. End result is in C13 where the formula comes.


[Table="width:, class:grid"][tr][td]Row\Col[/td][td]
A​
[/td][td]
B​
[/td][td]
C​
[/td][td]
D​
[/td][/tr][tr][td]
1​
[/td][td="bgcolor:#0070C0"]Teams[/td][td="bgcolor:#0070C0"]Points_To-Give[/td][td="bgcolor:#0070C0"]Result[/td][td="bgcolor:#0070C0"]MyTeams[/td][/tr]
[tr][td]
2​
[/td][td]BMC Racing Team[/td][td]
20​
[/td][td]1 * 20 = 20[/td][td]BORA - hansgrohe[/td][/tr]
[tr][td]
3​
[/td][td]Team Sky[/td][td]
17​
[/td][td]1 * 17 = 17[/td][td]Team Katusha - Alpecin[/td][/tr]
[tr][td]
4​
[/td][td]Quick-Step Floors[/td][td]
14​
[/td][td]2 * 14 = 28[/td][td]UAE-Team Emirates[/td][/tr]
[tr][td]
5​
[/td][td]Mitchelton-Scott[/td][td]
11​
[/td][td][/td][td]Team Katusha - Alpecin[/td][/tr]
[tr][td]
6​
[/td][td]Team Sunweb[/td][td]
8​
[/td][td]2 * 8 = 16[/td][td]Team Sunweb[/td][/tr]
[tr][td]
7​
[/td][td]Team EF Education First-Drapac p/b Cannondale[/td][td]
5​
[/td][td]2 * 5 = 10[/td][td]Groupama - FDJ[/td][/tr]
[tr][td]
8​
[/td][td]BORA - hansgrohe[/td][td]
4​
[/td][td]2 * 4 = 8[/td][td]Team Sunweb[/td][/tr]
[tr][td]
9​
[/td][td]Astana Pro Team[/td][td]
3​
[/td][td]1 * 3 = 3[/td][td]Quick-Step Floors[/td][/tr]
[tr][td]
10​
[/td][td]Team Katusha - Alpecin[/td][td]
2​
[/td][td]2 * 2 = 4[/td][td]UAE-Team Emirates[/td][/tr]
[tr][td]
11​
[/td][td]Movistar Team[/td][td]
1​
[/td][td]1 * 1 = 1[/td][td]Team LottoNL-Jumbo[/td][/tr]
[tr][td]
12​
[/td][td][/td][td][/td][td][/td][td]Astana Pro Team[/td][/tr]
[tr][td]
13​
[/td][td]TOTAL[/td][td]Desired-Result:[/td][td="bgcolor:#FFFF00"]
107
[/td][td]Team Dimension Data[/td][/tr]
[tr][td]
14​
[/td][td][/td][td][/td][td][/td][td]Quick-Step Floors[/td][/tr]
[tr][td]
15​
[/td][td][/td][td][/td][td][/td][td]Trek - Segafredo[/td][/tr]
[tr][td]
16​
[/td][td][/td][td][/td][td][/td][td]AG2R La Mondiale[/td][/tr]
[tr][td]
17​
[/td][td][/td][td][/td][td][/td][td]Movistar Team[/td][/tr]
[tr][td]
18​
[/td][td][/td][td][/td][td][/td][td]Lotto Soudal[/td][/tr]
[tr][td]
19​
[/td][td][/td][td][/td][td][/td][td]Team EF Education First-Drapac p/b Cannondale[/td][/tr]
[tr][td]
20​
[/td][td][/td][td][/td][td][/td][td]BMC Racing Team[/td][/tr]
[tr][td]
21​
[/td][td][/td][td][/td][td][/td][td]AG2R La Mondiale[/td][/tr]
[tr][td]
22​
[/td][td][/td][td][/td][td][/td][td]Bahrain Merida Pro Cycling Team[/td][/tr]
[tr][td]
23​
[/td][td][/td][td][/td][td][/td][td]Team Sky[/td][/tr]
[tr][td]
24​
[/td][td][/td][td][/td][td][/td][td]Team EF Education First-Drapac p/b Cannondale[/td][/tr]
[tr][td]
25​
[/td][td][/td][td][/td][td][/td][td]Team LottoNL-Jumbo[/td][/tr]
[tr][td]
26​
[/td][td][/td][td][/td][td][/td][td]BORA - hansgrohe[/td][/tr]
[tr][td]
27​
[/td][td][/td][td][/td][td][/td][td]Team Fortuneo - Samsic[/td][/tr]
[/table]
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Excel 2010
ABC
1TeamsPoints_To-GiveMyTeams
2BMC Racing Team20BORA - hansgrohe
3Team Sky17Team Katusha - Alpecin
4Quick-Step Floors14UAE-Team Emirates
5Mitchelton-Scott11Team Katusha - Alpecin
6Team Sunweb8Team Sunweb
7Team EF Education First-Drapac p/b Cannondale5Groupama - FDJ
8BORA - hansgrohe4Team Sunweb
9Astana Pro Team3Quick-Step Floors
10Team Katusha - Alpecin2UAE-Team Emirates
11Movistar Team1Team LottoNL-Jumbo
12Astana Pro Team
13TOTAL107Team Dimension Data
14Quick-Step Floors
15Trek - Segafredo
16AG2R La Mondiale
17Movistar Team
18Lotto Soudal
19Team EF Education First-Drapac p/b Cannondale
20BMC Racing Team
21AG2R La Mondiale
22Bahrain Merida Pro Cycling Team
23Team Sky
24Team EF Education First-Drapac p/b Cannondale
25Team LottoNL-Jumbo
26BORA - hansgrohe
27Team Fortuneo - Samsic
Sheet5
Cell Formulas
RangeFormula
B13=SUMPRODUCT(COUNTIF($C$2:$C$27,$A$2:$A$11),$B$2:$B$11)
 
Upvote 0
Thanks for spending time in this one SheetSpread. Your solution worked perfectly. I tried first with COUNTIFS but I struggled and forgot about the SUMPRODUCT.
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,274
Members
452,628
Latest member
dd2

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