Match

Z

Zhead

In coloumn A some cells contain "Y" coloumn F also has cells that contain a
"Y" i would like to know how to sum which same rows in A and F contain "Y"
 
S

smartin

Zhead said:
In coloumn A some cells contain "Y" coloumn F also has cells that contain a
"Y" i would like to know how to sum which same rows in A and F contain "Y"

Try:

=SUMPRODUCT(--(A:A="Y"),--(F:F="Y"))
 
J

JoeU2004

smartin said:
Try:
=SUMPRODUCT(--(A:A="Y"),--(F:F="Y"))

I don't believe SUMPRODUCT permits column references like that, as least not
in Excel 2003.

i would like to know how to sum which same rows in A and F contain "Y"

If by "sum", you mean "count", then try:

=SUMPRODUCT((A1:A100="y")*(F1:F100="y"))

But if you mean that you would like to sum another range (X1:X100)
corresponding to those conditions, try:

=SUMPRODUCT((A1:A100="y")*(F1:F100="y"),X1:X100)
 
S

smartin

JoeU2004 said:
I don't believe SUMPRODUCT permits column references like that, as least
not in Excel 2003.



If by "sum", you mean "count", then try:

=SUMPRODUCT((A1:A100="y")*(F1:F100="y"))

But if you mean that you would like to sum another range (X1:X100)
corresponding to those conditions, try:

=SUMPRODUCT((A1:A100="y")*(F1:F100="y"),X1:X100)

You are correct. SUMPRODUCT cannot handle references to full columns in
E2003, (which I knew all along, but cavalierly overlooked by posting
without testing). Thanks for catching my error!
 
Z

Zhead

Thanks for the information.
I am using this formula and it does what I need.
=IF(--(A:A="Y"),(--(F:F="Y")))
 

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

Top