Lookup

philcart

Board Regular
Joined
Feb 12, 2003
Messages
177
hi,
I have a list of Christian names in column in a worksheet, eg John, Richard, Peter etc. In another sheet I have a list of names in colA, their race times in colB. There are many duplicate names in colA (sorted in time order), so what I need is a way of looking up the fastest of each in turn form the list on the previous sheet - ie the fastest John, then the fastest Richard, then the fastest Peter, and so on, and put "Winner" in the cell in colC.
Hope someone can help.
Phil
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Before going any further, are you saying that each person gets 2 or more heats, and each person's fastest time from those heats is compared the other people's fastest time, and that gives the winner?

Please be a bit more specific in what your data looks like and what you would like to achieve.
 
Upvote 0
I assume one with the smallest time is the winner...

The data...
Book11
ABCD
1NameTime
2Richard10
3John12
4Bob12
5Bob12
6Peter13
7Bob13
8John14
9John14
10Peter14
11Richard15
12Richard15
13Peter16
14
Sheet2


The processing...
Book11
ABCD
1NameFastestTimeRankWinner
2John122Richard
3Richard101
4Peter134
5Bob123
Sheet1


Formulas...

B2:

=MIN(IF(Sheet2!$A$2:$A$13=A2,Sheet2!$B$2:$B$13))

which must be entered using control+shift+enter, not just enter.

C2:

=RANK(B2,$B$2:$B$5,1)+COUNTIF($B$2:B2,B2)-1

D2:

=INDEX($A$2:$A$5,MATCH(1,$C$2:$C$5,0))

Note that there might be more than one winner. The above formula will just show one of them.

Is this what you are looking for?
 
Upvote 0
:D To all who replied so pomptly - thank you very much. i will look at all your solutions. Barry - I will give more details if the other suggestions don't work out.
Cheers,
Phil
 
Upvote 0

Forum statistics

Threads
1,221,695
Messages
6,161,360
Members
451,699
Latest member
sfairbro

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top