sumif with multiple criteria

Dartagnan

Active Member
Joined
Jun 19, 2002
Messages
386
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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
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)
 

Dartagnan

Active Member
Joined
Jun 19, 2002
Messages
386
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.
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
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.
 

Forum statistics

Threads
1,143,702
Messages
5,720,372
Members
422,280
Latest member
scottylan

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
Top