Summing Multiple Columns and Rows

AllAboutAlly

New Member
Joined
Mar 9, 2019
Messages
1
I've generated a worksheet for pari-mutual betting and I've hit a road-block. I added results to range L1:N4. I need a formula in cells M7 and M8 that will search for winning bets and calculate the total payout due to the bettor. This worksheet has many more rows and several more columns. I made the odds 1/1 to simplify.
Can anyone help?


Excel 2016 (Windows) 32 bit
ABCDEFGHIJKLMN
1LAST NAME/FIRST NAMETEAM NUMBERWAGER TYPEAMOUNTTEAM NUMBERWAGER TYPEAMOUNTTEAM NUMBERWAGER TYPEAMOUNTRESULTSTEAM MEMBERODDS
2Ambler, Rosendo23FLIGHT WIN519OVERALL SHOW2534FLIGHT PLACE10OVERALL WIN701/1
3Burgo, Mose66FLIGHT PLACE1041FLIGHT WIN3010FLIGHT SHOW15OVERALL PLACE141/1
4Higham, Herta83FLIGHT SHOW1564FLIGHT PLACE3589OVERALL WIN20OVERALL SHOW381/1
5Elvin, Domingo70OVERALL WIN2024FLIGHT SHOW4014OVERALL PLACE25
6Shiffer, Alene90OVERALL PLACE2520OVERALL WIN4517OVERALL SHOW30BETTORPAYOUT
7Tome, Norberto21OVERALL SHOW3014OVERALL PLACE509FLIGHT WIN35Elvin, Domingo45
8Steveson, Mignon27FLIGHT WIN3538OVERALL SHOW590FLIGHT PLACE40Vrba, Benito40
9Hoehne, Marti66FLIGHT PLACE4062FLIGHT WIN1050FLIGHT SHOW45
10Bingaman, Elba17FLIGHT SHOW454FLIGHT PLACE1571OVERALL WIN50
11Wollard, Kathleen30OVERALL WIN5031FLIGHT SHOW2059OVERALL PLACE5
12Vrba, Benito14OVERALL PLACE570OVERALL WIN2538OVERALL SHOW10
13Taitt, Melissa59OVERALL SHOW1038OVERALL SHOW2546FLIGHT WIN15
14Grasty, Ismael13FLIGHT WIN1587FLIGHT WIN3085FLIGHT PLACE20
15Valenzuela, Tesha5FLIGHT PLACE2035FLIGHT PLACE3586FLIGHT SHOW25
16Cowan, Lennie83FLIGHT SHOW2591FLIGHT SHOW4054OVERALL WIN30
17Sanchez, Janet3OVERALL WIN3044OVERALL WIN4514OVERALL PLACE35
18Griffin, Brian91OVERALL PLACE3595OVERALL PLACE5079OVERALL SHOW40
19Bailey, Keith47OVERALL SHOW4084OVERALL SHOW549FLIGHT WIN45
20Mitchell, Jeremy39FLIGHT WIN4523FLIGHT WIN108FLIGHT PLACE50
21
22

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi,

Would summing row by row work for you?

K2 formula with your criterion hard-coded.
L2 formula uses cell references for criterion.

Either formula copied down:


Book1
ABCDEFGHIJKLMNO
1LAST NAME/FIRST NAMETEAM NUMBERWAGER TYPEAMOUNTTEAM NUMBERWAGER TYPEAMOUNTTEAM NUMBERWAGER TYPEAMOUNTPAYOUTPAYOUTRESULTSTEAM MEMBERODDS
2Ambler, Rosendo23FLIGHT WIN519OVERALL SHOW2534FLIGHT PLACE1000OVERALL WIN701/1
3Burgo, Mose66FLIGHT PLACE1041FLIGHT WIN3010FLIGHT SHOW1500OVERALL PLACE141/1
4Higham, Herta83FLIGHT SHOW1564FLIGHT PLACE3589OVERALL WIN2000OVERALL SHOW381/1
5Elvin, Domingo70OVERALL WIN2024FLIGHT SHOW4014OVERALL PLACE254545
6Shiffer, Alene90OVERALL PLACE2520OVERALL WIN4517OVERALL SHOW3000BETTORPAYOUT
7Tome, Norberto21OVERALL SHOW3014OVERALL PLACE509FLIGHT WIN355050Elvin, Domingo45
8Steveson, Mignon27FLIGHT WIN3538OVERALL SHOW590FLIGHT PLACE4055Vrba, Benito40
9Hoehne, Marti66FLIGHT PLACE4062FLIGHT WIN1050FLIGHT SHOW4500
10Bingaman, Elba17FLIGHT SHOW454FLIGHT PLACE1571OVERALL WIN5000
11Wollard, Kathleen30OVERALL WIN5031FLIGHT SHOW2059OVERALL PLACE500
12Vrba, Benito14OVERALL PLACE570OVERALL WIN2538OVERALL SHOW104040
13Taitt, Melissa59OVERALL SHOW1038OVERALL SHOW2546FLIGHT WIN152525
14Grasty, Ismael13FLIGHT WIN1587FLIGHT WIN3085FLIGHT PLACE2000
15Valenzuela, Tesha5FLIGHT PLACE2035FLIGHT PLACE3586FLIGHT SHOW2500
16Cowan, Lennie83FLIGHT SHOW2591FLIGHT SHOW4054OVERALL WIN3000
17Sanchez, Janet3OVERALL WIN3044OVERALL WIN4514OVERALL PLACE353535
18Griffin, Brian91OVERALL PLACE3595OVERALL PLACE5079OVERALL SHOW4000
19Bailey, Keith47OVERALL SHOW4084OVERALL SHOW549FLIGHT WIN4500
20Mitchell, Jeremy39FLIGHT WIN4523FLIGHT WIN108FLIGHT PLACE5000
Sheet634
Cell Formulas
RangeFormula
K2=SUM(SUMIFS(D2:J2,C2:I2,{"OVERALL WIN","OVERALL PLACE","OVERALL SHOW"},B2:H2,{70,14,38}))
L2=SUMIFS(D2:J2,B2:H2,N$2,C2:I2,M$2)+SUMIFS(D2:J2,B2:H2,N$4,C2:I2,M$4)+SUMIFS(D2:J2,B2:H2,N$3,C2:I2,M$3)
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,823
Members
449,049
Latest member
cybersurfer5000

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