# sumif with multiple criteria

#### Dartagnan

##### Active Member
Can you do a sumif with 2 or more criteria? I would like the sumif to look at 2 cells and then sum. For example cell A1 has 1/2001 and cell C1 has 6. I want the sum if A1 = 1/2001 and C1 = 6.

Can this be done?

### Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
On 2002-10-11 15:03, Dartagnan wrote:
Can you do a sumif with 2 or more criteria? I would like the sumif to look at 2 cells and then sum. For example cell A1 has 1/2001 and cell C1 has 6. I want the sum if A1 = 1/2001 and C1 = 6.

Can this be done?

You do not specify where to look using those 2 criteria...

=SUMPRODUCT((Range1=A1)*(Range2=C1),Range3)

I am not sure I follow you. I am going to look through 2 columns and if the criteria in both columns match then give me the sum.

The 1st criteria(1/2002) is located in column A. The 2nd criteria(6) is located in column C. The column I want to sum is column B. So if column A has 1/2001 and column C has 6 then give me the sum from column B.

Thank you.

On 2002-10-11 15:34, Dartagnan wrote:
I am not sure I follow you. I am going to look through 2 columns and if the criteria in both columns match then give me the sum.

The 1st criteria(1/2002) is located in column A. The 2nd criteria(6) is located in column C. The column I want to sum is column B. So if column A has 1/2001 and column C has 6 then give me the sum from column B.

Thank you.

=SUMPRODUCT((\$A\$2:\$A\$100=E1)*(\$C\$2:\$C\$100=F1),\$B\$2:\$B\$100)

Enter in E1 the criterion 1/2001 and in E2 the criterion 6.

That works great!!

Replies
7
Views
141
Replies
2
Views
92
Replies
9
Views
417
Replies
3
Views
339
Replies
6
Views
286

1,219,093
Messages
6,146,266
Members
450,681
Latest member
ASBM24

### 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.

### Which adblocker are you using?

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

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