Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
COUNT IF
I am trying to count the number of rows if two parameters are met. I am
using this formula as an array. I get "0" returned and I know it is wrong. Please advise. Thanks. =COUNT(IF($F$2:$F$119="AAA",IF($D$2:$D$119="N",$D$ 2:$D$119,""),"")) |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
COUNT IF
Anytime you must deal with two or more criteria, consider SUMPRODUCT():
=SUMPRODUCT(($F$2:$F$119="AAA")*($D$2:$D$119="N")) -- Gary''s Student - gsnu200812 "PAL" wrote: I am trying to count the number of rows if two parameters are met. I am using this formula as an array. I get "0" returned and I know it is wrong. Please advise. Thanks. =COUNT(IF($F$2:$F$119="AAA",IF($D$2:$D$119="N",$D$ 2:$D$119,""),"")) |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
COUNT IF
You should use SUMPRODUCT
=SUMPRODUCT(--($F$2:$F$119="AAA"),--($D$2:$D$119="N")) -- ** John C ** Please remember if your question is answered, to mark it answered :). It helps everyone. "PAL" wrote: I am trying to count the number of rows if two parameters are met. I am using this formula as an array. I get "0" returned and I know it is wrong. Please advise. Thanks. =COUNT(IF($F$2:$F$119="AAA",IF($D$2:$D$119="N",$D$ 2:$D$119,""),"")) |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
COUNT IF
Try:
=SUMPRODUCT(($F$2:$F$119="AAA")*($D$2:$D$119="N")) Or, with TRIM for improved robustness: =SUMPRODUCT((TRIM($F$2:$F$119)="AAA")*(TRIM($D$2:$ D$119)="N")) -- Max Singapore http://savefile.com/projects/236895 Downloads:20,000 Files:362 Subscribers:62 xdemechanik --- "PAL" wrote: I am trying to count the number of rows if two parameters are met. I am using this formula as an array. I get "0" returned and I know it is wrong. Please advise. Thanks. =COUNT(IF($F$2:$F$119="AAA",IF($D$2:$D$119="N",$D$ 2:$D$119,""),"")) |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
COUNT IF
Max, you're expertise is needed!
See the thread titled: Confusing Function by Chris C. It's a few posts below this one (on CDO). -- Biff Microsoft Excel MVP "Max" wrote in message ... Try: =SUMPRODUCT(($F$2:$F$119="AAA")*($D$2:$D$119="N")) Or, with TRIM for improved robustness: =SUMPRODUCT((TRIM($F$2:$F$119)="AAA")*(TRIM($D$2:$ D$119)="N")) -- Max Singapore http://savefile.com/projects/236895 Downloads:20,000 Files:362 Subscribers:62 xdemechanik --- "PAL" wrote: I am trying to count the number of rows if two parameters are met. I am using this formula as an array. I get "0" returned and I know it is wrong. Please advise. Thanks. =COUNT(IF($F$2:$F$119="AAA",IF($D$2:$D$119="N",$D$ 2:$D$119,""),"")) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Count Employee Work Time - Don't Double-count Overlapping Apts. | Excel Worksheet Functions | |||
Excel 2000, count, sort a list & count totals? | Excel Worksheet Functions | |||
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row | Excel Worksheet Functions | |||
Count Intervals of 1 Numeric value in a Row and Return Count down Column | Excel Worksheet Functions | |||
Count Intervals of Filtered TEXT values in Column and Return Count across a Row | Excel Worksheet Functions |