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

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,077
Latest member
Jocksteriom

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