sumif question

  • Thread starter Thread starter Tom G
  • Start date Start date
T

Tom G

How can I modify this:

=sumif(school,"<>"&10,AD)

to be able to do that:

sumif school is not equal to 10 and hs_type is equal to 1.

Thanks
 
Hi Tom

i would use

=SUMPRODUCT((School<>10)*(HS_Type=1)*Value)

where value is the range that you want to sum as i'm not sure what the AD
referred to in your sumif statement.

Cheers
JulieD
 
Hi Tom
for this you need SUMPRODUCt: e.g.
=SUMPRODUCT((school<>10)*(hs_type=1),AD)

where school, hs_type and AD are named ranges with the same dimensions
 
Your first formula can be written as

=SUMIF(school,"<>10",AD)

for your question use

=SUMPRODUCT(--(school<>10),--(hs_type=1),AD)
 

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

Why doesn't this work ? 2
sumif-sumproduct 6
Sumifs - greater than criteria with a Cell Reference 3
Column Average Given 2 Criteria 4
sumif/Countif 1
SUMIFS Issue 5
SUMIF with 2 conditions 20
SUMIF between 2 dates 1

Back
Top