Trying to SumIf in an index and match (index and matching, but wont sum)

rzrich

New Member
Joined
Sep 26, 2018
Messages
3
Good Afternoon,

=IFERROR(SUMIF('Sales Index'!$C$2:$K$2,B$2,INDEX('Sales Index'!$C$3:$K$200,MATCH($A5,'Sales Index'!$B$3:$B$200,0),0)),0)

<colgroup><col></colgroup><tbody>
</tbody>

The formula is listed above that is working (index and match) but I have a matrix on another tab that has multiple entry lines.
breaking the formula down:
C2:K2 - row headings (months)
C3:K200 - area
A5 - identifier (name)
B3:B200 - name list

Like I said it is index and matching perfectly. but it stops at the first found item and isn't summing the row. I have a drop down built in that will automatically update the month cell. this is why I don't just line all the months up and build it to show all information.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
I ended using the following formula because I couldn't get the sumif to work correctly. Let me know if you find something else that works better.

=IFERROR(DSUM('Sales Index'!$B$2:$K$200,MATCH(B$2,'Sales Index'!$B$2:$K$2,0),$A$2:$A8)-SUM($B$3:B7),"")
 
Upvote 0
Control+shift+enter, not just enter:

=SUM(IF('Sales Index'!$C$2:$K$2=B$2,IF('Sales Index'!$B$3:$B$200=$A5,'Sales Index'!$C$3:$K$200)))
 
Upvote 0

Forum statistics

Threads
1,215,577
Messages
6,125,637
Members
449,242
Latest member
Mari_mariou

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