Sum If Multiple Ifs

blarrabee

New Member
Joined
Jul 22, 2009
Messages
39
Platform
  1. MacOS
  2. Web
Trying to sum numbers under the following conditions:


Sum If

2009!Q is greater than B and less than C

and 2009!I = A

any help would be appreciated.

Thanks!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
If you search google, look for conditional sum wizard and download/instal it. its a wizard that walks you through stuff like this.

I'm sure someone on here will write up a nice array formula, but I use the wizard since its easier.
 
Upvote 0
Try like this

=SUMPRODUCT(--(2009!Q1:Q100>B),--(2009!Q1:Q100 < C),--(2009!I1:I100=A),2009!X1:X100)<c),--(2009!i1:i100=a),2009!x1:x100)>

Replace A, B and C with numbers and change X1:X100 to the range to sum. All ranges must be the same size.</c),--(2009!i1:i100=a),2009!x1:x100)>
 
Upvote 0
Trying to sum numbers under the following conditions:


Sum If

2009!Q is greater than B and less than C

and 2009!I = A

any help would be appreciated.

Thanks!
Do you want a SUM or a COUNT? If you want a SUM you left out what range should be summmed.

What version of Excel are you using?
 
Upvote 0
=SUMPRODUCT(--(2009!Q1:Q100>B),--(2009!Q1:Q100 < C),--(2009!I1:I100=A),2009!A1:A100)

will give you a SUM.
 
Upvote 0
What I think I want to do is:
=COUNTIFS('2009'!I:I,A2,'2009'!Q:Q,">=1/4/09",'2009'!AT:AT,"<=1/10/09")

but i'd like the dates to reference cells and not be "hard coded" into the formula.
 
Upvote 0
What I think I want to do is:


but i'd like the dates to reference cells and not be "hard coded" into the formula.
OK, then just enter the dates in some cells:
  • X1 = 1/4/09
  • X2 = 1/10/09
Then:

=COUNTIFS('2009'!I:I,A2,'2009'!Q:Q,">="&X1,'2009'!AT:AT,"<="&X2)
 
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

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