R
royend
Hi,
I am making an excel document which has several tables and all kinds o
functions, but there is one problem I just cannot solve:
Issue: I have two columns with parallell information, meaning that th
information has a connection. Let's call one "Name" and the othe
"Age". What I would like to do is count how many times a certain valu
of age AND name appears, for example "Hans" as Name and "22" as age.
This is what I tryed:
COUNTIF((B7:B500,"Hans")AND(C7:C500,22))
I also tryed:
COUNT(OR(B7:B500="Hans,C7:C500=22)) 'Suppose to count where bot
expressions are TRUE.
In addition I have tryed several other more or less comprehensiv
functions, but none have worked.
I have much experience with ASP-scripting, and in ASP (VB) it woul
look like this:
counter = 0
While Not Name.EOF OR Age.EOF
If Name = Hans Then
If Age = 22 Then
counter = counter + 1
End If
End If
Wend
May you help me on this one?? Is there any easy solutions?
Best Regards.
Roy Endré Dah
I am making an excel document which has several tables and all kinds o
functions, but there is one problem I just cannot solve:
Issue: I have two columns with parallell information, meaning that th
information has a connection. Let's call one "Name" and the othe
"Age". What I would like to do is count how many times a certain valu
of age AND name appears, for example "Hans" as Name and "22" as age.
This is what I tryed:
COUNTIF((B7:B500,"Hans")AND(C7:C500,22))
I also tryed:
COUNT(OR(B7:B500="Hans,C7:C500=22)) 'Suppose to count where bot
expressions are TRUE.
In addition I have tryed several other more or less comprehensiv
functions, but none have worked.
I have much experience with ASP-scripting, and in ASP (VB) it woul
look like this:
counter = 0
While Not Name.EOF OR Age.EOF
If Name = Hans Then
If Age = 22 Then
counter = counter + 1
End If
End If
Wend
May you help me on this one?? Is there any easy solutions?
Best Regards.
Roy Endré Dah
