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
329
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.


Row\Col
A​
B​
C​
D​
1​
TeamsPoints_To-GiveResultMyTeams
2​
BMC Racing Team
20​
1 * 20 = 20BORA - hansgrohe
3​
Team Sky
17​
1 * 17 = 17Team Katusha - Alpecin
4​
Quick-Step Floors
14​
2 * 14 = 28UAE-Team Emirates
5​
Mitchelton-Scott
11​
Team Katusha - Alpecin
6​
Team Sunweb
8​
2 * 8 = 16Team Sunweb
7​
Team EF Education First-Drapac p/b Cannondale
5​
2 * 5 = 10Groupama - FDJ
8​
BORA - hansgrohe
4​
2 * 4 = 8Team Sunweb
9​
Astana Pro Team
3​
1 * 3 = 3Quick-Step Floors
10​
Team Katusha - Alpecin
2​
2 * 2 = 4UAE-Team Emirates
11​
Movistar Team
1​
1 * 1 = 1Team LottoNL-Jumbo
12​
Astana Pro Team
13​
TOTALDesired-Result:
107
Team Dimension Data
14​
Quick-Step Floors
15​
Trek - Segafredo
16​
AG2R La Mondiale
17​
Movistar Team
18​
Lotto Soudal
19​
Team EF Education First-Drapac p/b Cannondale
20​
BMC Racing Team
21​
AG2R La Mondiale
22​
Bahrain Merida Pro Cycling Team
23​
Team Sky
24​
Team EF Education First-Drapac p/b Cannondale
25​
Team LottoNL-Jumbo
26​
BORA - hansgrohe
27​
Team Fortuneo - Samsic
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

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,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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