Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count Non-Blanks in one column based on criteria in another
Considering the following hypothetical table with column headers and example
values: [A] [b] [C] FREQ CALL1 CALL2 [1] 18 10 [2] 12 8 21 [3] 6 16 [4] 18 8 25 [5] 12 5 [6] 6 I want to know for all rows containing '18' for FREQ, how many of these have a 'non-blank' value for CALL2. In the above example,there is only one row that has a value of '18' for FREQ AND a 'non-blank' for CALL2. Therefore the count is '1' I need a straight-forward formula - not pivot table, to provide this type of conditional count. Any advice would be sincerely appreciated !!!! |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count Non-Blanks in one column based on criteria in another
=SUMPRODUCT(--(A1:A6=18), --(C1:C6<""))
adjust ranges as needed. sumproduct cannot accomodate entire columns (ie A:A). "ScottPcola" wrote: Considering the following hypothetical table with column headers and example values: [A] [b] [C] FREQ CALL1 CALL2 [1] 18 10 [2] 12 8 21 [3] 6 16 [4] 18 8 25 [5] 12 5 [6] 6 I want to know for all rows containing '18' for FREQ, how many of these have a 'non-blank' value for CALL2. In the above example,there is only one row that has a value of '18' for FREQ AND a 'non-blank' for CALL2. Therefore the count is '1' I need a straight-forward formula - not pivot table, to provide this type of conditional count. Any advice would be sincerely appreciated !!!! |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count Non-Blanks in one column based on criteria in another
Thanks JMB...that did the trick !!!
"JMB" wrote: =SUMPRODUCT(--(A1:A6=18), --(C1:C6<"")) adjust ranges as needed. sumproduct cannot accomodate entire columns (ie A:A). "ScottPcola" wrote: Considering the following hypothetical table with column headers and example values: [A] [b] [C] FREQ CALL1 CALL2 [1] 18 10 [2] 12 8 21 [3] 6 16 [4] 18 8 25 [5] 12 5 [6] 6 I want to know for all rows containing '18' for FREQ, how many of these have a 'non-blank' value for CALL2. In the above example,there is only one row that has a value of '18' for FREQ AND a 'non-blank' for CALL2. Therefore the count is '1' I need a straight-forward formula - not pivot table, to provide this type of conditional count. Any advice would be sincerely appreciated !!!! |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count Non-Blanks in one column based on criteria in another
you're welcome - thanks for the feedback.
"ScottPcola" wrote: Thanks JMB...that did the trick !!! "JMB" wrote: =SUMPRODUCT(--(A1:A6=18), --(C1:C6<"")) adjust ranges as needed. sumproduct cannot accomodate entire columns (ie A:A). "ScottPcola" wrote: Considering the following hypothetical table with column headers and example values: [A] [b] [C] FREQ CALL1 CALL2 [1] 18 10 [2] 12 8 21 [3] 6 16 [4] 18 8 25 [5] 12 5 [6] 6 I want to know for all rows containing '18' for FREQ, how many of these have a 'non-blank' value for CALL2. In the above example,there is only one row that has a value of '18' for FREQ AND a 'non-blank' for CALL2. Therefore the count is '1' I need a straight-forward formula - not pivot table, to provide this type of conditional count. Any advice would be sincerely appreciated !!!! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
sum items in a column based on criteria located in other columns | Excel Discussion (Misc queries) | |||
creating a bar graph | Excel Discussion (Misc queries) | |||
I Need to Count Number of Entries Based on Two Criteria | Excel Worksheet Functions | |||
Arithmetical Mode of Criteria in Multiple Non-Adjacent columns | Excel Worksheet Functions | |||
count non blank cells which meet criteria in another column | Excel Worksheet Functions |