![]() |
Counting Multiple Text Cells
I am trying to determine the formula to count - only if the criteria in two
(or more) cells is true. Example Data Set Service Equipment Data ATM Voice DMS 250 Voice DMS 300 Data FR Voice DMS 250 So i am looking for something to show how often both the serivce and the equipment criteria meet the desired output. I tried writing a formula like =COUNTIF(A2:A6,"Voice")AND(B2:B6,"DMS250") where it would then count the data set and report the value of 2 ... 2 times the criteria is both voice and dms250. Any thoughts??? Thanks |
Counting Multiple Text Cells
Try this...
=SUMPRODUCT(--(A2:A6="Voice"),--(B2:B6="DMS250")) Better to use cells to hold the criteria: D2 = voice E2 = DMS250 =SUMPRODUCT(--(A2:A6=D2),--(B2:B6=E2)) If you're using Excel 2007: =COUNTIFS(A2:A6,D2,B2:B6,E2) -- Biff Microsoft Excel MVP "Aaron G" <Aaron wrote in message ... I am trying to determine the formula to count - only if the criteria in two (or more) cells is true. Example Data Set Service Equipment Data ATM Voice DMS 250 Voice DMS 300 Data FR Voice DMS 250 So i am looking for something to show how often both the serivce and the equipment criteria meet the desired output. I tried writing a formula like =COUNTIF(A2:A6,"Voice")AND(B2:B6,"DMS250") where it would then count the data set and report the value of 2 ... 2 times the criteria is both voice and dms250. Any thoughts??? Thanks |
Counting Multiple Text Cells
Hi
=SUMPRODUCT((A1:A10="Voice")*(B1:B10="DMS250")) -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "Aaron G" wrote: I am trying to determine the formula to count - only if the criteria in two (or more) cells is true. Example Data Set Service Equipment Data ATM Voice DMS 250 Voice DMS 300 Data FR Voice DMS 250 So i am looking for something to show how often both the serivce and the equipment criteria meet the desired output. I tried writing a formula like =COUNTIF(A2:A6,"Voice")AND(B2:B6,"DMS250") where it would then count the data set and report the value of 2 ... 2 times the criteria is both voice and dms250. Any thoughts??? Thanks |
Counting Multiple Text Cells
=SUMPRODUCT((A2:A6="Voice")*(B2:B6="DMS 250"))
Gord Dibben MS Excel MVP On Fri, 22 Jan 2010 13:09:01 -0800, Aaron G <Aaron wrote: I am trying to determine the formula to count - only if the criteria in two (or more) cells is true. Example Data Set Service Equipment Data ATM Voice DMS 250 Voice DMS 300 Data FR Voice DMS 250 So i am looking for something to show how often both the serivce and the equipment criteria meet the desired output. I tried writing a formula like =COUNTIF(A2:A6,"Voice")AND(B2:B6,"DMS250") where it would then count the data set and report the value of 2 ... 2 times the criteria is both voice and dms250. Any thoughts??? Thanks |
All times are GMT +1. The time now is 08:22 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com