--- Steven Lancaster wrote:
Cheers Max.
I wonder if you could help me further?
What I am trying to do exactly, is to produce a unique list of 'JobNumbers'
for a person's name. For example in column A I have a long list of
'JobNumbers' and in column B a corresponding list of peoples names. Is it
possible for me to get excel to produce a 'uniques' list of the 'JobNumbers'
by looking at a person's name in a different cell? So I would want excel to
look at, say, D1(name) then match that name to data in column B to produce a
'uniques' list in column C from the data in column A?
Here's a quick sample:
http://cjoint.com/?ldejZjGyiv
StevenLanc_wksht.xls
With jobnumbers in col A, names in col B, from row1 down
Put in C1:
=IF(B1="","",IF(COUNTIF($B$1:B1,B1)>1,"",ROW()))
Put in D1:
=IF(ISERROR(SMALL(C:C,ROW())),"",INDEX(B:B,MATCH(SMALL(C:C,ROW()),C:C,0)))
Put in E1:
=IF(ISERROR(SMALL(C:C,ROW())),"",INDEX(A:A,MATCH(SMALL(C:C,ROW()),C:C,0)))
Select C1

1, copy down to say, E100, to cover the max expected data in cols
A & B
The list of unique names will be extracted in col D, and the jobnumber
corresponding to the 1st instance of the name (i.e. uniques = 1st instances)
will be returned in col E