I need to count items in one column when the word active appears in another
column.
What I am trying to do is count all members who are "active" and who have a
shunt. Active and Shunt are in different columns and I know that I could just
filter the sheet by the columns, but I was hoping for an easier method. By
developing a formula.
Don Guillett - 28 Feb 2007 16:08 GMT
=sumproduct((a2:a22="active")*(b2:b22="shunt"))

Signature
Don Guillett
SalesAid Software
dguillett1@austin.rr.com
>I need to count items in one column when the word active appears in another
> column.
[quoted text clipped - 5 lines]
> filter the sheet by the columns, but I was hoping for an easier method. By
> developing a formula.
JE McGimpsey - 28 Feb 2007 16:14 GMT
One way:
=SUMPRODUCT(--(A1:A1000="active"),--(B1:B1000="shunt"))
See http://www.mcgimpsey.com/excel/doubleneg.html for an explanation of
the "--"
You might also consider using a Pivot Table, if you have multiple items
to count.
> I need to count items in one column when the word active appears in another
> column.
[quoted text clipped - 3 lines]
> filter the sheet by the columns, but I was hoping for an easier method. By
> developing a formula.
Bill Roberts - 28 Feb 2007 16:47 GMT
These formulas wanted to sum the two columns or multiply them. I am wanting
to onlu sum one column if the other has a particular text in it.
> I need to count items in one column when the word active appears in another
> column.
[quoted text clipped - 3 lines]
> filter the sheet by the columns, but I was hoping for an easier method. By
> developing a formula.
JE McGimpsey - 28 Feb 2007 17:13 GMT
Did you actually try it?
I suspect not.
> These formulas wanted to sum the two columns or multiply them. I am wanting
> to onlu sum one column if the other has a particular text in it.
Don Guillett - 28 Feb 2007 21:02 GMT
Both fromulas work to COUNT, not SUM if BOTH columns meet the criteria on
the SAME row.

Signature
Don Guillett
SalesAid Software
dguillett1@austin.rr.com
> These formulas wanted to sum the two columns or multiply them. I am
> wanting
[quoted text clipped - 11 lines]
>> By
>> developing a formula.