Sum If On One Column With Multiple Values and One Other Column

ir121973

Active Member
Joined
Feb 9, 2008
Messages
371
Hi, I wonder whether someone may be able to help me please,

I have a spreadsheet where I'm trying to use the SumIF function to sum a particular value which must fit certain criterias from other columns.

I have managed half of it, but I just can't seem to work out the rest. I would like to sum the figures in Column AE, but only if the values in Column J are either 'H', I' or 'P' and the value in Column K is 'G'.

This the formula I've put together to pull together the multiple values in Column J, but for the life of me can't find a way to incorporate the value from Column K aswell.

=Sum(SumIF($J$3:$J$200,{"H";"I";"P"},$AE$3:$AE$200)

Could someone perhaps give me a helping hand with this please.

Many thanks

Chris
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hello Chris,

which version of Excel are you using? In Excel 2007 and later you can use SUMIFS function (with an extra "S" at the end), i.e.

=SUM(SUMIFS($AE$3:$AE$200,$J$3:$J$200,{"H";"I";"P"},$K$3:$K$200,"G"))

or in any version you can use SUMPRODUCT

=SUMPRODUCT($AE$3:$AE$200,ISNUMBER(MATCH($J$3:$J$200,{"H";"I";"P"},0))*($K$3:$K$200="G"))
 
Upvote 0
Hi many thanks for your reply.

I'm using Excel 2003, so I'll have a try at the second formula and I'll let you know how I get on.

Kind Regards

Chris
 
Upvote 0
Hi,

Just thought I'd give you a very quick update. I've just tried this out and it works a treat.

Thank you so much.

Kind Regards

Chris
 
Upvote 0

Forum statistics

Threads
1,224,520
Messages
6,179,267
Members
452,902
Latest member
Knuddeluff

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