If you only knew! <lol
OK, I think I have it but I hope Harlan comes back with a more efficient
solution.
It's a 2 formula approach.
Enter this formula in F2 and copy to G2:
=IF(AND(SUMPRODUCT(--(ISNUMBER(MATCH($I2:$K2,$C2:$E2,0))))=2,SUMPRODUC T(--(ISNUMBER(MATCH($C2:$E2,$I2:$K2,0))))=2,COUNTIF($ I2:$K2,C2)0),C2,"")
Enter this formula in H2:
=IF(AND(SUMPRODUCT(--(ISNUMBER(MATCH($I2:$K2,$C2:$E2,0))))=2,SUMPRODUC T(--(ISNUMBER(MATCH(C2:E2,I2:K2,0))))=2,COUNTIF($I2:$ K2,E2)0,COUNT(F2,G2)<COUNT(I2:K2)),E2,"")
Now, select the range F2, G2, H2 and copy down as needed.
Biff
"Luke" wrote in message
...
Stirred things up a bit it appears.
A question arises in that
in F2
if C2,D2 & C2,E2 are = to either I2,J2 OR J2,I2 OR J2,K2 OR K2,I2 OR K2,J2
Shouldn't it also, in the same sentance say:
but only if I2"" or J2"" OR K2"", OTHERWISE display the contents of
I2,J2 OR J2,I2 OR J2,K2 OR K2,I2 OR K2,J2...?
Like wise in G2 and H2.
Just a thought here, but perhaps a way out of a good but kickin when it
comes to 455 444 senarios :)
Luke
"Biff" wrote:
That's a lot more efficient than what I came up with and I got the same
results. However, according to the OP, the correct output should be:
_ | 8 | 8
1 | _ | 5
_ | _ | _
8 | 6 | _
9 | 0 | 2
_ | _ | _
_ | _ | _
4 | 5 | _
_ | _ | _
_ | _ | _
_ | _ | _
_ | _ | _
_ | _ | _
_ | _ | _
The entries that are 4|5|5 and _|4|5 are kicking my butt! Specifcally,
and
this is where I'm stuck, the last 5 should not appear in column H.
Biff
"Harlan Grove" wrote in message
oups.com...
Vasant Nanavati wrote...
...
. . . And you still say there's nothing original in these NGs?
...
Nope. The ABS(x-m)<w/2 idiom has been mentioned before for testing
whether x falls between m-w/2 and m+w/2 without having to calculate m
twice, and the ratio term is akin to the standard way of counting
distinct entries in a range containing duplicates.
The gist is that each of C, D or E must account for some but not all of
the total count of all C:E in I:K.
|