SUMIF with 3 criteria vs 2 criteria

J

jane

this works:
{=SUM(IF($H$9:$H$116=4,IF(LEFT($J$9:$J$116)="y",$I$9:$I$116))))}

but this does not
{=SUM(IF($H$9:$H$116=4,IF($H$9:$H$116=1,IF(LEFT($J$9:$J$116)="y",$I$9:$I$116))))}
need to know if col H contains a 1 or a 4 and J starts with a y - my result
is 0 but should be 2130

suggestions??? thanks in advance!, jane
 
R

Ron Coderre

Try this:

=SUMPRODUCT(($H$9:$H$116={1,4})*(LEFT($J$9:$J$116,1)="Y")*$I$9:$I$116)

Does that help?
Post back if you have more questions.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
 
T

Teethless mama

Try like this:

{=SUM(IF($H$9:$H$116={1,4},IF(LEFT($J$9:$J$116)="y",$I$9:$I$116)))}
 
J

jane

it worked!
thank you!

Ron Coderre said:
Try this:

=SUMPRODUCT(($H$9:$H$116={1,4})*(LEFT($J$9:$J$116,1)="Y")*$I$9:$I$116)

Does that help?
Post back if you have more questions.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
 

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

Auto-numbering 10
sum 2 columns with equal names 1
For Next If help 3
Formula help needed 1
OJG;mlorAM 0
Hlookup 3 criteria?? 0
multiple columns and row table and finding the answer 2
More Grand Totals 5

Top