Sum rows if two columns = specific criteria.

G

Guest

I would like to set up a formula that will allow me to sum a column if the
row meets two criteria.



A B C D
1 Apple WA Active 5
2 Pear OR Closed 6
3 Apple OR Active 2
4 cherry WA Closed 3
5 cherry ID Active 4
6 Peach ID Closed 7

example,
I would like the sum of Column D where colum B = Apple & column C = Wa
in this example that would be 5

I have been unable to figure this out using two variables.
 
B

Bob Phillips

=SUMPRODUCT(--(A1:A100="Apple),--(B1:B100="Wa"))

Note that SUMPRODUCT doesn't work with complete columns, you have to specify
a range.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)
 
G

Guest

Hi,

You may also try the following array formula (Ctrl+Shift+Enter):

=sum(if((rangeA="Apple")*(rangeB="WA"),rangeD))

Regards,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Help with =SUMPRODUCT 3
DSUM criteria 3
sumif 1
vlookup 3 sheets 1
Count with two criteria in a second worksheet 1
SUM multiple criteria 1
Sum when cell's value in Named List 6
Sumproduct? 3

Top