Here's the thing ! Column D has a list of names (the same name may appear several times, maximum 6 so far), Column J has an internal code and Column S has a percentage value.
How can I look up a name in column D, and if the internal code is the same as the one I'm dealing with then I want to return the percentage value.
I've tried using OFFSET, MATCH, INDEX and VLOOKUP in varying ways but can only get halfway there.
The following is the closest I've got but in doesn't take into account the internal reference, it just looks up the n'th recorrence of the name (in this case the last, found by using COUNTIF):
=INDEX($D$2:$S$400,SMALL(IF($D$2:$S$400=A22,ROW($D$2:$S$400)-ROW($D$2)+1,ROW($D$400)+1),COUNTIF($D$2:$S$400,A22)),16)
NOTE:
A22 is the name I'm looking up ! And these are array forumlas (i.e. so you must press Ctrl+Shift+Enter when you edit the formula to get the curly brackets).
Any help would be useful, else I might be testing whether or not laptops can survive when thrown from the third floor of a building !!!!!
Leigh-Anne
How can I look up a name in column D, and if the internal code is the same as the one I'm dealing with then I want to return the percentage value.
I've tried using OFFSET, MATCH, INDEX and VLOOKUP in varying ways but can only get halfway there.
The following is the closest I've got but in doesn't take into account the internal reference, it just looks up the n'th recorrence of the name (in this case the last, found by using COUNTIF):
=INDEX($D$2:$S$400,SMALL(IF($D$2:$S$400=A22,ROW($D$2:$S$400)-ROW($D$2)+1,ROW($D$400)+1),COUNTIF($D$2:$S$400,A22)),16)
NOTE:
A22 is the name I'm looking up ! And these are array forumlas (i.e. so you must press Ctrl+Shift+Enter when you edit the formula to get the curly brackets).
Any help would be useful, else I might be testing whether or not laptops can survive when thrown from the third floor of a building !!!!!
Leigh-Anne