#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default CountIf question

I'm having an issue adding additional criteria to my formula. Here is my
current formula:

=COUNTIF(OFFSET($P$9,0,0,(COUNTA($A:$A))-2,1),$P3)

Column A has number identifiers. Column P has a formula in it that
generates a letter. If the letter matches P3 then the cell is counted. I
would like to add Column C to my formula above. If Column C contains "x" and
column P matches P3, then count column A. Please keep in mind that P
contains a fomula, so text and numbers is not recognized....(I think)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default CountIf question

Try

=SUMPRODUCT(--(C1:C1000="x"),--(P1:P1000=P3))

If this post helps click Yes
---------------
Jacob Skaria


"Stuck" wrote:

I'm having an issue adding additional criteria to my formula. Here is my
current formula:

=COUNTIF(OFFSET($P$9,0,0,(COUNTA($A:$A))-2,1),$P3)

Column A has number identifiers. Column P has a formula in it that
generates a letter. If the letter matches P3 then the cell is counted. I
would like to add Column C to my formula above. If Column C contains "x" and
column P matches P3, then count column A. Please keep in mind that P
contains a fomula, so text and numbers is not recognized....(I think)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default CountIf question

If I understand what you want then create these named ranges:

InsertNameDefine
Name: ColA
Refers to:

=OFFSET($A$9,,,COUNTA($A:$A)-2)

Name: ColC
Refers to:

=OFFSET($C$9,,,COUNTA($A:$A)-2)

Name: ColP
Refers to:

=OFFSET($P$9,,,COUNTA($A:$A)-2)

Then:

=SUMPRODUCT(--(ISNUMBER(ColA)),--(ColC="x"),--(ColP=P3))


--
Biff
Microsoft Excel MVP


"Stuck" wrote in message
...
I'm having an issue adding additional criteria to my formula. Here is my
current formula:

=COUNTIF(OFFSET($P$9,0,0,(COUNTA($A:$A))-2,1),$P3)

Column A has number identifiers. Column P has a formula in it that
generates a letter. If the letter matches P3 then the cell is counted. I
would like to add Column C to my formula above. If Column C contains "x"
and
column P matches P3, then count column A. Please keep in mind that P
contains a fomula, so text and numbers is not recognized....(I think)



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
COUNTIF question Jock Excel Worksheet Functions 15 March 14th 08 12:32 PM
CountIf Question Alpruett Excel Worksheet Functions 7 February 18th 08 10:14 PM
=countif question edju Excel Discussion (Misc queries) 5 October 4th 06 11:45 PM
Countif question Dan B Excel Worksheet Functions 1 February 13th 06 08:17 PM
countif question yeedao Excel Worksheet Functions 10 August 15th 05 03:13 AM


All times are GMT +1. The time now is 03:49 PM.

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

About Us

"It's about Microsoft Excel"