SUMIFS with INDEX MATCH at a loss

DEHA11

New Member
Joined
Jun 25, 2018
Messages
15
I have a worksheet called "Summary" that should show the total sales by month by category. On a separate worksheet, called "2019", I have a list of sales. I am trying to update the "Summary" worksheet to show the sum of all of sales for each category for each month.

The formula I have at this time is returning 0. This indicated cell should return 5,550

??? =SUMIF('2019'!$L:$L,(INDEX('2019'!$A$2:$M$500,0,MATCH(P$3,'2019'!$A:$A,0),MATCH($A5,'2019'!$E$1:$E$500,0))))

(I've omitted columns that are not relevant to my question in the sample below)

"SUMMARY" worksheet

ANOP
2CATMTH
3JAN
4
5BINS???
6PARTS

<tbody>
</tbody>

"2019" worksheet
AELM
1MTHCATAMTCUST
2JANBINS5,000BOB SMITH
3JANPARTS1,200DAN PETERS
4JANBINS550JASON BROWN
5FEBPARTS250SCOTT FINDE
6FEBBINS2,500BOB SMITH
7FEBMISC150DAN PETERS
8FEBPARTS300BOB SMITH

<tbody>
</tbody>
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
This may meet your needs - it uses SUMIFS. The 2019 tab used is cloned from your example, but the summary used different cells.
CATJANFEB
BINS55502500
PARTS1200550
MISC0150

<tbody>
</tbody>
Code:
=SUMIFS('2019'!L:L,'2019'!E:E,A2,'2019'!A:A,$C$1)
=SUMIFS('2019'!L:L,'2019'!E:E,A2,'2019'!A:A,$D$1)
There would be a slightly different formula for each month (the last criteria $C$1 for January and $D$1 for February, etc.), and the formulas can be copied down for to cover the categories.
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,840
Members
449,096
Latest member
Erald

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