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 / June 2007

Tip: Looking for answers? Try searching our database.

IF/COUNT Statements Help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
treen333@gmail.com - 18 Jun 2007 21:59 GMT
I'm trying to get a count on a column that has two conditions. The
conditions are:

If column J has an X and Column S has a P count this cell.

Can anyone tell be how to enter this formula?

Thanks
Rick Rothstein (MVP - VB) - 18 Jun 2007 22:06 GMT
> I'm trying to get a count on a column that has two conditions. The
> conditions are:
>
> If column J has an X and Column S has a P count this cell.
>
> Can anyone tell be how to enter this formula?

Give this a try...

=SUMPRODUCT((J1:J10="X")*(S1:S10="P"))

Rick
T. Valko - 18 Jun 2007 22:07 GMT
Try this:

=SUMPRODUCT(--(J1:J10="X"),--(S1:S10="P"))

Biff

> I'm trying to get a count on a column that has two conditions. The
> conditions are:
[quoted text clipped - 4 lines]
>
> Thanks
bj - 18 Jun 2007 22:08 GMT
try
=sumproduct(--(J1:J100="X"),--(S1:S100="P"))
the --( changes the logical true false to a numeric 1 0
the arrays must be the same size but cannot be an entire column
J:J won't work

> I'm trying to get a count on a column that has two conditions. The
> conditions are:
[quoted text clipped - 4 lines]
>
> Thanks
Jovan Timotijevic - 18 Jun 2007 23:54 GMT
Try this array formula (remember to finish it with Ctrl+Shift+Enter):

=SUM(--(J1:J14="x")*--(S1:S14="p"))

Jovan Timotijevic

> I'm trying to get a count on a column that has two conditions. The
> conditions are:
[quoted text clipped - 4 lines]
>
> Thanks
Teethless mama - 19 Jun 2007 04:52 GMT
Try this:

=SUMPRODUCT(--(J1:J100&S1:S100="XP"))

> I'm trying to get a count on a column that has two conditions. The
> conditions are:
[quoted text clipped - 4 lines]
>
> Thanks
 
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.