Sumifs

bgonen

Active Member
Joined
Oct 24, 2009
Messages
264
Excel Workbook
ABCDEFG
1GroupSubgroupDepartmentJanFeb**
2AmericasEnergyOil11**
3AmericasMedicalXray21**
4AmericasEnergyWind32**
5*******
6***64**
7*******
8Variable:Americas*=SUMIFS(A2:A4,B2:B4,C2:C4,B8,D2:D4)***
Sheet1



I am trying to set a formula that will total columns D if I only change the variable cell: B8 (B8 can be Americas, Medical,Xray etc)
Any suggestions?
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Maybe this

Formula in D8
=SUMPRODUCT(D2:D4,--(ISNUMBER(SEARCH($B$8,$A$2:$A$4&$B$2:$B$4&$C$2:$C$4))))

copy across

HTH

M.
 
Upvote 0
Excel Workbook
ABCDEFG
1GroupSubgroupDepartmentJanFeb**
2AmericasEnergyOil11**
3AmericasMedicalXray21**
4AmericasEnergyWind32**
5*******
6***64**
7*******
8Variable:Americas*=SUMIFS(A2:A4,B2:B4,C2:C4,B8,D2:D4)***
Sheet1



I am trying to set a formula that will total columns D if I only change the variable cell: B8 (B8 can be Americas, Medical,Xray etc)
Any suggestions?
D8, control+shift+enter, not just enter:

=SUM(IF($A$2:$C$4=$B8,D$2:D$4))
 
Upvote 0
Thank you very much both:)

I tried the Array formula Aladin suggested and it works fine for me (I'm sure the sumproduct works fine but I need to improve my Array knowledge)
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,459
Members
452,915
Latest member
hannnahheileen

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