INDEX / MIN Issues

ollyhughes1982

Well-known Member
Joined
Nov 27, 2018
Messages
795
Office Version
  1. 365
Platform
  1. MacOS
[FONT=&quot]Hi.[/FONT]
[FONT=&quot]
[/FONT]
[FONT=&quot]Please see ‘Example’ file via the link, below.[/FONT]
[FONT=&quot]
[/FONT]
[FONT=&quot]https://1drv.ms/x/s!AtIvkRgReIvwgRcNSvXr5zlzQZXA[/FONT]
[FONT=&quot]
[/FONT]
[FONT=&quot]My problem relates to columns BF and BG in certain cases.[/FONT]
[FONT=&quot]
[/FONT]
[FONT=&quot]In cases where the finishing position is the same in column BB and BE (sub-event #1 and sub-event #2: green highlighted area), I want column BH to pick the value from the column which has the higher value in either BA or BD (age-grade), rather than just automatically take the values from sub-event #1, which it seems to be doing.[/FONT]
[FONT=&quot]
[/FONT]
[FONT=&quot]The examples in yellow are coincidentally ok, as the results in sub-event #1 happen to be the one with the higher age-grade score. However, the examples in red need to be selecting the relevant values from BC, BD & BE, rather than AZ, BA & BB - i.e. the ones with the higher age-grade score and then the relevant time for that age-grade score.[/FONT]
[FONT=&quot]
[/FONT]
[FONT=&quot]e.g. In row 19 the BG19 cell should show 66.38% and BF19 should show 00:06:49. Row 20 is similar in that BG20 shows 00:04:02 and 67.88%, but should show 68.91% and 06:34. There are similar cases in rows 38, 46, 78 & 80.[/FONT]
[FONT=&quot]
[/FONT]
[FONT=&quot]In other words, when the finishing positions are the same in both sub-events; I want the data to be pulled from the sub-event which has the higher age-grade score and the relevant time for that score.[/FONT]
[FONT=&quot]
[/FONT]
[FONT=&quot]Thanks in advance.[/FONT]
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Maybe something like this:
Excel Workbook
AZBABBBCBDBEBFBGBH
3TimeAge-GradeFinishingPositionTimeAge-GradeFinishingPositionTimeAge-GradeFinishingPosition
40:07:0961.52%30:06:3367.15%20:06:3367.15%2
50:05:3471.92%10:06:0765.45%10:06:0765.45%1
Sheet
 
Upvote 0
try this


Book1
AZBABBBCBDBEBFBGBHBI
3TimeAge-GradeFinishing PositionTimeAge-GradeFinishing PositionTimeAge-GradeFinishing PositionPoints League Event Points
400:07:0961.52%300:06:3367.15%200:06:3367.15%2149
500:05:3471.92%100:06:0765.45%100:05:3471.92%1150
6#N/A0.00%00
7#N/A0.00%00
Results & Members Data
Cell Formulas
RangeFormula
BF4=INDEX(AZ4:BE4,MATCH(BG4,AZ4:BE4,0)-1)
BG4=IF(BB4=BE4,MAX(BA4,BD4),IFERROR(INDEX(AZ4:BE4,MATCH(BH4,AZ4:BE4,0)-1),0))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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