Mixing subtotal and sumif

Dexir

New Member
Joined
Oct 27, 2018
Messages
38
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
Hi Experts, Greetings!
I have this sheet, sumif is working fine, but i want to get the quantity of A Range and B Range in F2 and F3, if i do filter any specific packing. Thanks in advance. :)
Book1
ABCDEFG
1
2A RANGE174
3B RANGE307
4Packing SizeRangeQty
530X30B RANGE20
615X15A RANGE26
718X24A RANGE27
830X30B RANGE28
915X15B RANGE90
1018X24B RANGE40
1130X30B RANGE80
1215X15B RANGE49
1330X30A RANGE61
1415X15A RANGE48
1515X15A RANGE12
16
Sheet1
Cell Formulas
RangeFormula
F2F2=SUMIF($B$5:$B$15,$E$2,$C$5:$C$15)
F3F3=SUMIF($B$5:$B$15,$E$3,$C$5:$C$15)
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Please check.
Book1
EFG
515X15A RANGE86
615X15B RANGE139
718X24A RANGE27
818X24B RANGE40
930X30A RANGE61
1030X30B RANGE128
Sheet1
Cell Formulas
RangeFormula
G5:G10G5=SUMIFS($C$5:$C$15,$B$5:$B$15,$F5,$A$5:$A$15,$E5)

Thanks
 
Upvote 0
Sir, i don't want in G column, i just want if i do filter any of packing, the sum of A Range and B range of filtered packing showing in A range in F2 and B range in F3.
 
Upvote 0
May be this ?
Book1
ABCDEF
2A RANGE174
3B RANGE307
4Packing SizeRangeQty
530X30B RANGE20
615X15A RANGE26
718X24A RANGE27
830X30B RANGE28
915X15B RANGE90
1018X24B RANGE40
1130X30B RANGE80
1215X15B RANGE49
1330X30A RANGE61
1415X15A RANGE48
1515X15A RANGE12
Sheet1
Cell Formulas
RangeFormula
F2:F3F2=SUMPRODUCT(SUBTOTAL(109,OFFSET(C5,ROW($C$5:$C$15)-ROW(C5),,1)),--($B$5:$B$15=$E2))

Thanks
 
Upvote 0
Solution
Yes this, Working perfectly. Thank you so much!
 
Upvote 0

Forum statistics

Threads
1,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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