Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default 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



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 no. of nonblank cells in one column based on criteria of ano Beach Lover Excel Discussion (Misc queries) 9 February 19th 07 03:39 PM
How do I count nonblank cells that meet criteria in another cell? jimswinder Excel Worksheet Functions 13 July 20th 06 04:42 PM
counting nonblank cells sbrimley Excel Worksheet Functions 7 May 18th 05 10:22 AM
counting cells (COUNTIF) based on two or more criteria Tricia S. Excel Worksheet Functions 10 March 17th 05 02:17 PM
Counting rows based on criteria in multiple cells Margaret Excel Discussion (Misc queries) 11 December 2nd 04 11:04 PM


All times are GMT +1. The time now is 10:38 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"