SUMIF INDEX Help

fklioside

Board Regular
Joined
May 6, 2013
Messages
51
I am trying to sum the below based on how many months. I normally use a Sum INDEX but trying to build it into a SUMIF instead. My ideal result should be 9 but I keep getting 3. Is there a better way to do this? Any help would be greatly appreciated!

x3xnN7B.png
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi

You can check the help for SumIf(). The criteria range will be resized to the same size of the sum range.

You can, however, use SumProduct() instead, like (not tested):

=SUMPRODUCT((D10:D15=J10)*E10:INDEX(E10:G15,,J11))
 
Upvote 0
Hi

You can check the help for SumIf(). The criteria range will be resized to the same size of the sum range.

You can, however, use SumProduct() instead, like (not tested):

=SUMPRODUCT((D10:D15=J10)*E10:INDEX(E10:G15,,J11))

Thank you this works! Curious can I replace D10:D15 and E10:G15 with named ranges? Or will not that work since the *E10 portion?
 
Upvote 0
Hi

No problem. Define the data range of the table for ex. tblData referring to $E$10:$G$15 and use:

=SUMPRODUCT((D10:D15=J10)*INDEX(tblData,,1):INDEX(tblData,,J11))
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

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