Enter these formulae
F2: =A2
F3: =IF(ISERROR(MATCH(0,COUNTIF(F$2:F2,$A$2:$A$7&""),0)),"",
INDEX(IF(ISBLANK($A$2:$A$7),"",$A$2:$A$7),MATCH(0,COUNTIF(F$2:F2,$A$2:$A$7&"
"),0)))
which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter, and copy down to F7
G2: =MAX(IF($A$2:$A$7=$F2,$C$2:$C$7))
which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter, and copy down to G7
---
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
> How can I extract the first entries for each key in Excel from the following
> 4 columns ?
[quoted text clipped - 17 lines]
>
> Thanks in anticipation.
diglas1 - 31 May 2006 23:06 GMT
Bob, thanks very much, it took me some time to work out how you arrived at
this ! ...I'm just exploring Excel macros and VBA to solve a couple of
specific problems... but it's advanced me a huge step. Onward...
>Enter these formulae
>
[quoted text clipped - 23 lines]
>>
>> Thanks in anticipation.