Xcel Formula # rows With value X in colF AND Value A or B in colJ

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to find a way to build a conditional formula to return the
following values:

Count when Column F = X AND when Column J = A or B.
 
Cat said:
I'm trying to find a way to build a conditional formula to return the
following values:

Count when Column F = X AND when Column J = A or B.

Hi Cat,

Here is one way of doing it:

=SUMPRODUCT(--(F1:F10="X"),--(J1:J10="A"))+SUMPRODUCT(--(F1:F10="X"),--(J1:J10="B"))

Note that you can not use the entire rows in the formula but have to
specifie a range.

Regards,
Bondi
 
Try...

=SUMPRODUCT(--(F2:F100="X"),--ISNUMBER(MATCH(J2:J100,{"A","B"},0)))

or

=SUMPRODUCT(--(F2:F100="X"),--ISNUMBER(MATCH(J2:J100,M2:M3,0)))

....where M2 and M3 contain A and B, respectively.

Hope this helps!
 

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

Back
Top