SUMIFS across a range

reacon84

New Member
Joined
Sep 13, 2016
Messages
36
Office Version
  1. 2016
Platform
  1. Windows
Hi, I posted a question recently which this excellent community very kindly helped me with. However, the spreadsheet has evolved a little since then and I'm hopefully looking for another solution.

1616661541377.png


What I'd like to do is have a formula that would 'find' all Jan-21 Type A amounts and sum the corresponding amounts in H2:L6. Then do the same for Jan-21 Type B, Feb-21 Type A and Feb-21 Type B.

The blue box shows the outcome I'm looking for but I'm a bit stuck with the formula. I've tried using a SUMIF range but just get a #VALUE.

Thanks for any help in advance.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi there, try this:

Book1
ABCDEFGHIJKL
1Type1234512345
2Type A21-Jan1030401020
3Type B21-Feb21-Jan1015251035
4Type A21-Feb21-Jan1030401050
5Type A21-Feb3020101525
6Type B21-Jan4025153040
7
821-Jan21-Feb
9Type A6025
10Type B4015
Sheet3
Cell Formulas
RangeFormula
F9:G10F9=SUMPRODUCT(($A$2:$A$6=$E9)*($B$2:$F$6=F$8)*($H$2:$L$6))


Also, it'd be easier to help out if you could paste sample data by XL2BB next time.
 
Upvote 0
Solution
Try this in F9

Excel Formula:
=SUMIFS($H$2:$H$6,$B$2:$B$6,F$8,$A$2:$A$6,$E9)+SUMIFS($I$2:$I$6,$C$2:$C$6,F$8,$A$2:$A$6,$E9)+SUMIFS($J$2:$J$6,$D$2:$D$6,F$8,$A$2:$A$6,$E9)+SUMIFS($K$2:$K$6,$E$2:$E$6,F$8,$A$2:$A$6,$E9)+SUMIFS($L$2:$L$6,$F$2:$F$6,F$8,$A$2:$A$6,$E9)

I am sure there must be a simpler way of doing this - but this is what I know
 
Upvote 0
Thank you so much for the replies! Always a great help!

Have a great day!
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,369
Members
449,080
Latest member
Armadillos

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