Sum values based on multiple column criteria and a row criteria

dunlop407703

New Member
Joined
Oct 8, 2014
Messages
24
Hi

I would like to find a formula which will allow me to sum a set of data value based on meeting a couple of column criteria and 1 row criteria. A snapshot example of the data is below.

What I need to do is sum all values in the range C2:J7 where A2:A7=Criteria1, B2:B7=Criteria2 and C1:J1=Criteria3.

I cannot use sumproduct((A2:A7=Criteria1)*(B2:B7=Criteria2)*(C1:J1=Criteria3),C2:J7) as the number of columns searched is different to the number of rows.

Any possible solutions would be very appreciated.

ABCDEFGHIJ
1CodeLvl2017\Apr2017\May2017\Jun2017\Jul2017\Aug2017\Sep2017\Oct2017\Nov
2WUMain000100200000
3WIMain000010030000
4WUSouth2001005040050000
5WISouth0002001002000100
6LXSouth01002002000000
7MN1South0001002005000

<tbody>
</tbody>
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
your sumproduct formula should work just fine the way you have it written
 
Upvote 0
This worked for me
Code:
=(SUMIF(A2:A7,">0")+SUMIF(B2:B7,">1")+SUMIF(C1:H1, ">2"))
 
Upvote 0

Forum statistics

Threads
1,215,701
Messages
6,126,311
Members
449,308
Latest member
Ronaldj

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