Adding range totals in sumproduct

baseball

Board Regular
Joined
Apr 1, 2002
Messages
153
Win 8.1/Office 14

I have a worksheet with baseball inning-by-inning scoring on it with range names like innV1, innv2,...innH25, innH26 and WLT (for Win/Lose/Tie). I want to determine the team's winning percentage when it scores first (by inning). For example, if the visiting team (which bats first) has not scored through six innings of play, I want to determine what percentage of games the home teams when in that situation.

When the visiting team scores in the 1st inning, it is a trivial matter to determine but the method I found to determine other instances is a bit more problematical. I wanted to used sumproduct as in:

SUMPRODUCT(((innV1+innV2+innV3)=0)*((innH1+innH2)=0)*(innH3>0)*(WLT="H")) which will tell me how many games the home team won when they scored in the bottom half of the third inning of a scoreless game. However, this gets unwieldy as the scoring gets later in the game.

The question I have is whether there is some way to simplify this as I am not sure that Excel would accept a formula that would cover 26 innings (the length of the longest game). I could add a couple more tables with teh cumulative scores by innings for each team but that would add another 26 range names. Suggestions?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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