Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Counting Nonblank cells based on criteria in another cell
I am trying to count the number of cells that have text in them when
the criteria is met in another cell. Severity Reason Code 1 Contacted client 2 Resolved updated late 2 Contacted Client 3 I need the formula to calculate the total number of reason codes by severity. I have tried so many ways to write the formula and the majority of the time the result is a count of the blank cells or just the number 1 even when there is no reason code entered. =IF(A2:A10000="1",COUNTA(B2:B10000,0)) Any help would be greatly appreciated |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Counting Nonblank cells based on criteria in another cell
Maybe one way:
=SUMPRODUCT(--(A2:A10000=1),--(B2:B10000<0)) HTH, Paul wrote in message ps.com... I am trying to count the number of cells that have text in them when the criteria is met in another cell. Severity Reason Code 1 Contacted client 2 Resolved updated late 2 Contacted Client 3 I need the formula to calculate the total number of reason codes by severity. I have tried so many ways to write the formula and the majority of the time the result is a count of the blank cells or just the number 1 even when there is no reason code entered. =IF(A2:A10000="1",COUNTA(B2:B10000,0)) Any help would be greatly appreciated |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Counting Nonblank cells based on criteria in another cell
One way:
=SUMPRODUCT(--(A2:A100=1),--(B1:B100="Contacted client")) Alternatively (and better, if you want a breakout of all combinations) use a Pivot Table: http://peltiertech.com/Excel/Pivots/pivotstart.htm In article om, wrote: I am trying to count the number of cells that have text in them when the criteria is met in another cell. Severity Reason Code 1 Contacted client 2 Resolved updated late 2 Contacted Client 3 I need the formula to calculate the total number of reason codes by severity. I have tried so many ways to write the formula and the majority of the time the result is a count of the blank cells or just the number 1 even when there is no reason code entered. =IF(A2:A10000="1",COUNTA(B2:B10000,0)) Any help would be greatly appreciated |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Count no. of nonblank cells in one column based on criteria of ano | Excel Discussion (Misc queries) | |||
How do I count nonblank cells that meet criteria in another cell? | Excel Worksheet Functions | |||
counting nonblank cells | Excel Worksheet Functions | |||
counting cells (COUNTIF) based on two or more criteria | Excel Worksheet Functions | |||
Counting rows based on criteria in multiple cells | Excel Discussion (Misc queries) |