Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default IF/COUNT Statements Help

I'm trying to get a count on a column that has two conditions. The
conditions a

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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default IF/COUNT Statements Help

I'm trying to get a count on a column that has two conditions. The
conditions a

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
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default IF/COUNT Statements Help

Try this:

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

Biff

wrote in message
oups.com...
I'm trying to get a count on a column that has two conditions. The
conditions a

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



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default IF/COUNT Statements Help

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

" wrote:

I'm trying to get a count on a column that has two conditions. The
conditions a

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


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF/COUNT Statements Help

Try this array formula (remember to finish it with Ctrl+Shift+Enter):

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

Jovan Timotijevic


" wrote:

I'm trying to get a count on a column that has two conditions. The
conditions a

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




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default IF/COUNT Statements Help

Try this:

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


" wrote:

I'm trying to get a count on a column that has two conditions. The
conditions a

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count if multiple statements in two columns Motaad Excel Worksheet Functions 3 March 15th 07 10:32 PM
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM
# of days - if & count statements Karen Smith Excel Discussion (Misc queries) 10 August 30th 06 09:12 PM
How can I count IF, then, else statements that have values? Jenny Excel Worksheet Functions 8 August 3rd 06 01:29 PM
count if function with if statements Natalia Excel Worksheet Functions 3 April 22nd 05 02:52 AM


All times are GMT +1. The time now is 05:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"