Thread: Count if help
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
John C[_2_] John C[_2_] is offline
external usenet poster
 
Posts: 1,358
Default Count if help

Assuming your 2nd sheet is called Sheet2, and your first sheet (Sheet1) has a
client code in A2, to do your count, type the following formula in the same
row (whatever column, I used B)
B2: =SUMPRODUCT(--(Sheet2!$A$2:$A$100=$A2),--(Sheet2!$H$2:$H$100="H98"))
you could obviously set a different cell for your second criteria, and the 2
ranges, that I have to 100, would need to be expanded to whatever row to meet
your needs on sheet 2.
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.


"cware" wrote:

Hi and thanks in advance for your help!

I have a workbook where I have a listing of "client codes". On another
sheet I have a listing of data that could have many lines for each client
code. I'm looking for a counting formula on the first sheet, that will match
the client code from the second sheet AND, count it only if another column
equals specific text.

so for cell A2 ws1, I want to count how many times on ws 2, there is a match
for A1 ws1, that also meets the criteria of column H = "H98"

It's difficult to explain, but I'm certain there is a way to have multiple
criteria met?

thanks again!!

Cathy