Whats best to use Sumif, index match?

SJC2020

New Member
Joined
Jan 26, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Hi, I'm using an index match but this doesn't sum all the values i need for Sales Department, i've been messing around adding SUM at the beginning of the formula but that adds everything in that column

The attachment shows the basic formula but that returns the first value it finds.

Can anybody help?
 

Attachments

  • Excel Capture.JPG
    Excel Capture.JPG
    46.2 KB · Views: 6

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Here's one way using SUMPRODUCT.

Book1
ABCD
1JanFebMar
2Sales Dept151515
3Sales Dept202020
4IT252525
5IT303030
6
7
8Jan
9Sales Dept35
10IT55
Sheet2
Cell Formulas
RangeFormula
B9:B10B9=SUMPRODUCT(($A$2:$A$5=$A9)*($B$1:$D$1=B$8)*($B$2:$D$5))
 
Upvote 0
Here's one way using SUMPRODUCT.

Book1
ABCD
1JanFebMar
2Sales Dept151515
3Sales Dept202020
4IT252525
5IT303030
6
7
8Jan
9Sales Dept35
10IT55
Sheet2
Cell Formulas
RangeFormula
B9:B10B9=SUMPRODUCT(($A$2:$A$5=$A9)*($B$1:$D$1=B$8)*($B$2:$D$5))
Fantastic, thank you. Never used sumproduct before
 
Upvote 0
Another option
+Fluff 1.xlsm
ABCD
1JanFebMar
2Sales Dept151015
3Sales Dept20520
4IT25525
5IT303030
6
7
8JanFeb
9Sales Dept3515
10It5535
Main
Cell Formulas
RangeFormula
B9:C10B9=SUM(FILTER(FILTER($B$2:$D$5,$A$2:$A$5=$A9),$B$1:$D$1=B$8))
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,600
Members
449,038
Latest member
Arbind kumar

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