Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / February 2007

Tip: Looking for answers? Try searching our database.

IF Statements

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill Roberts - 28 Feb 2007 16:03 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.