Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default Counting type of incidents

I have a continuing list of "incidents". They are classified as type A or
B or C or D. I can "countif" the type and get totals of each, but what I am
having trouble with is whether or not not they have been resolved or still
open. The next column will have a text type answer in it if resolved and
left blank if not. The result will be somthing like : Type A has 40
incidents and 25 have been resolved. TIA for any suggestions


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Counting type of incidents

Try something like this:

=SUMPRODUCT(--($A$1:$A$100="A"),--($B$1:$B$100="Resolved"))

You can adjust the range ($A$1:$A$100 and $B$1:$B$100) as necessary.

HTH,
Paul

"Mike G" wrote in message
...
I have a continuing list of "incidents". They are classified as type A or
B or C or D. I can "countif" the type and get totals of each, but what I
am having trouble with is whether or not not they have been resolved or
still open. The next column will have a text type answer in it if resolved
and left blank if not. The result will be somthing like : Type A has 40
incidents and 25 have been resolved. TIA for any suggestions



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Counting type of incidents

try
=sumproduct(--(A1:100="A"),--(B1:B100<""))
countif is faster for just the number of As

the "--( " changes the logical true false to numeric 1 0
the arrays must be the same size and cannot refer to a full column.

"Mike G" wrote:

I have a continuing list of "incidents". They are classified as type A or
B or C or D. I can "countif" the type and get totals of each, but what I am
having trouble with is whether or not not they have been resolved or still
open. The next column will have a text type answer in it if resolved and
left blank if not. The result will be somthing like : Type A has 40
incidents and 25 have been resolved. TIA for any suggestions



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default Counting type of incidents

Great....was able to "monkey" with the formula somewhat and got it to work.
Was wondering what was the significance of the "<" portion in the formula
(B1:B100<""))



"bj" wrote in message
...
try
=sumproduct(--(A1:100="A"),--(B1:B100<""))
countif is faster for just the number of As

the "--( " changes the logical true false to numeric 1 0
the arrays must be the same size and cannot refer to a full column.

"Mike G" wrote:

I have a continuing list of "incidents". They are classified as type A
or
B or C or D. I can "countif" the type and get totals of each, but what I
am
having trouble with is whether or not not they have been resolved or
still
open. The next column will have a text type answer in it if resolved and
left blank if not. The result will be somthing like : Type A has 40
incidents and 25 have been resolved. TIA for any suggestions





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Counting type of incidents

That looks at the cells that are not blank in B1 to B100.
B1:B100 is < (anything other than, or greater than or less than) nothing.

I didn't think that's what you wanted, but glad it's working for you.

"Mike G" wrote in message
...
Great....was able to "monkey" with the formula somewhat and got it to
work. Was wondering what was the significance of the "<" portion in the
formula (B1:B100<""))



"bj" wrote in message
...
try
=sumproduct(--(A1:100="A"),--(B1:B100<""))
countif is faster for just the number of As

the "--( " changes the logical true false to numeric 1 0
the arrays must be the same size and cannot refer to a full column.

"Mike G" wrote:

I have a continuing list of "incidents". They are classified as type A
or
B or C or D. I can "countif" the type and get totals of each, but what
I am
having trouble with is whether or not not they have been resolved or
still
open. The next column will have a text type answer in it if resolved
and
left blank if not. The result will be somthing like : Type A has 40
incidents and 25 have been resolved. TIA for any suggestions









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
Counting cells with a particular type formatting Emml Excel Discussion (Misc queries) 1 March 10th 07 03:32 PM
Getting the top five incidents Danny Lewis Excel Worksheet Functions 11 July 25th 06 04:56 PM
Counting&Sorting multiple serial numbers per machine type Dark_Templar Excel Discussion (Misc queries) 5 June 17th 06 09:06 AM
Counting number of incidents of a month CD Web Excel Worksheet Functions 3 October 18th 05 10:15 PM
filter errors depending on number of incidents Tom Excel Discussion (Misc queries) 6 August 7th 05 10:00 PM


All times are GMT +1. The time now is 06:55 AM.

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"