Lookup help

The Idea Dude

Well-known Member
Joined
Aug 15, 2002
Messages
591
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

I have data as follows

Bib # Name Finish position
1 Bob Road 3
2 Bill White 4
3 Simone Crawley 1
4 Peter Parker 1


In another sheet I have a column (Say A4:A104) for bib #

I would like to pull The bib numbers across so that in A4 is Bib number 3, A5 is bib #4 (because they finished at the same time) A6 is bib #1 and A7 is bib # 2 etc. Needs to be done with formulas :)

Many thanks
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Excel 2010
ABCDE
1Bib#NameFinishposition
21Bob Road3Simone Crawley
32Bill White4Peter Parker
43Simone Crawley1Bob Road
54Peter Parker1Bill White
Source (2)
Cell Formulas
RangeFormula
E2:E5{=INDEX($B$2:$B$5,MATCH(SMALL($C$2:$C$5+ROW(C2:C5)/9999,ROW()-1),RANK(C2:C5,C2:C5,1)+ROW(A2:A5)/9999,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
@ The Idea Dude

Try to post the output you want from the data you posted. Your verbal description is a bit unnerving.
 
Upvote 0
@ The Idea Dude

Try to post the output you want from the data you posted. Your verbal description is a bit unnerving.

Hi Aladin,

Sorry about that.

Thanks sheetspread for making it look nice :)

So essentially the output Aladin will be column E from sheetspreads table except it would show bib # instead of name and I need to be able to drag the formula downwards, so in the example above, from E2 to E5 :)

Oh, and in the example above columns A, B and C are on 1 sheet and the formula I am looking for will go in another sheet, in case that matters :)

Hope that helps :)
 
Last edited:
Upvote 0

Book1
ABC
1Bib#NameFinishposition
21Bob Road3
32Bill White4
43Simone Crawley1
54Peter Parker1
Sheet1



Book1
AB
1bib #smallest to largest
231
341
413
524
Sheet2


In A2 of Sheet2 control+shift+enter, not just enter, and copy down:

=IF($B2="","",INDEX(Sheet1!$A$2:$A$5,SMALL(IF(Sheet1!$C$2:$C$5=$B2,ROW($B$2:$B$5)-ROW($B$2)+1),COUNTIFS($B$2:B2,B2))))

In B2 of Sheet2 control+shift+enter, not just enter, and copy down:

=INDEX(SMALL(Sheet1!$C$2:$C$5,ROW(Sheet1!$C$2:$C$5)-ROW(Sheet1!$C$2)+1),ROWS(B$2:B2))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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