Index / match? To return an adjacent cell to a min formula

ollyhughes1982

Well-known Member
Joined
Nov 27, 2018
Messages
795
Office Version
  1. 365
Platform
  1. MacOS
[FONT=&quot]Hi. I have this formula in my Excel spreadsheet:[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]=MIN(C4,K4,S4,AA4)[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]It gives me the minimum time value from each race, as the running event is comprised of 4 sub events of which your best time counts. I would like to know, how do I get my spreadsheet to display the adjacent cells to the left and right of the source cell (Time) that contains the min value (i.e. their quickest race of the 4), in the cell adjacent (left and right) to my formula cell. Essentially, populating the blank cells according to the quickest race the person has run.

Can I attach my spreadsheet file to the post?[/FONT]
 
Having seen post#9
In AJ4
=INDEX($A4:$AG4,MATCH($AI4,$A4:$AA4,0)+COLUMN(A1))
and fill right
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi. It seems to work for AH4, but not AJ4. It gives 02:52:48, but it should be giving 12.00% in AJ4, in AJ4, 24.00% in AK4, 2 in AL4, 100 in AM4, 23.00% in AN4 & 12.0 in AO4. i.e. The results from Sub-Event #4. as this was their fastest of the 4 races.

e.g. For Joe Bloggs 2 it would be 20.00% in AJ5, 30.00% in AK5, 5 in AL5, 20 in AM5, 33.00% in AN5 & 34.0 in AO5. i.e. The results from Sub-Event #1. as this was their fastest of their 4 races.

and so on...

Thanks.
 
Upvote 0
You need to change the cell formats to suit.
 
Upvote 0
Thanks so much. That seems to work perfectly! I'm sure I will be back with more Excel questions at some point. What a great site!
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0
For GA5
=INDEX($A$5:$FX5,MATCH($FZ5,$A5:$FXS5,0)+COLUMN(A1))
and
=INDEX($A5:$FX5,MATCH($FZ5,$A5:$FX5,0)-1)
for FY5
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

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