M
Mike
Good Morning All,
Using Windows XP & Excel XP
I have a worksheet that displays a daily 3 digit lottery number with the 3
digits being separted in column A2, B2 & C2
In columns A1,B1 & C1 is the number picked by a player.
Example:
A B C D
----------------------------
1 1 2 3 (Player pick)
2 4 1 7 (Lottery number drawn)
3 3 3 4 (Lottery number drawn)
I would like to have a formula that would count the number of occurences
that a player number matches a lottery drawn number, but with NO repeats.
Example:
In D2 I would like the formula to give the result of 1 (because of the match
of B2 matching A1).
In D3 I would like the formula to give the result of 1 (because A3 matches
up with C1 but NOT counting B3 matching up with C1
I was using the formula =SUMPRODUCT(COUNTIF($A2:$C2,$A$1:$C$1))...in D2,
that would give the result of 1.
but the same formula =SUMPRODUCT(COUNTIF($A3:$C3,$A$1:$C$1))...in D3 gives
me the result of 2....but I want it to count just a single occurence of the
3.
Is there a formula that would just count a single occurence of a number that
matches A1:C1?
Thank you in advance,
Michael
Using Windows XP & Excel XP
I have a worksheet that displays a daily 3 digit lottery number with the 3
digits being separted in column A2, B2 & C2
In columns A1,B1 & C1 is the number picked by a player.
Example:
A B C D
----------------------------
1 1 2 3 (Player pick)
2 4 1 7 (Lottery number drawn)
3 3 3 4 (Lottery number drawn)
I would like to have a formula that would count the number of occurences
that a player number matches a lottery drawn number, but with NO repeats.
Example:
In D2 I would like the formula to give the result of 1 (because of the match
of B2 matching A1).
In D3 I would like the formula to give the result of 1 (because A3 matches
up with C1 but NOT counting B3 matching up with C1
I was using the formula =SUMPRODUCT(COUNTIF($A2:$C2,$A$1:$C$1))...in D2,
that would give the result of 1.
but the same formula =SUMPRODUCT(COUNTIF($A3:$C3,$A$1:$C$1))...in D3 gives
me the result of 2....but I want it to count just a single occurence of the
3.
Is there a formula that would just count a single occurence of a number that
matches A1:C1?
Thank you in advance,
Michael