Hi guys
Love this board - has helped me for many years in finding solutions to my excel/vba problems.
I currently have this tricky one and have tried a few different Max(if(Mod(column..... iterations without much luck
I have my data in columns, with each row representing a different person, so can't rearrange things.
In basic terms the data I have looks something like this
[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD]Person[/TD]
[TD]Round 1[/TD]
[TD]Races[/TD]
[TD]Round 2[/TD]
[TD]Races[/TD]
[TD]Round 3[/TD]
[TD]Races[/TD]
[TD]Round 4[/TD]
[TD]Races[/TD]
[TD]Round 5[/TD]
[TD]Races[/TD]
[TD]Best 8 Race Result[/TD]
[TD]Best 9 Race Result[/TD]
[/TR]
[TR]
[TD]Name1[/TD]
[TD]15[/TD]
[TD]9[/TD]
[TD]12[/TD]
[TD]8[/TD]
[TD]10[/TD]
[TD]9[/TD]
[TD]13[/TD]
[TD]8[/TD]
[TD]23[/TD]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Now its various calculations that fill in the round results and # of races for each round.
Ive come up with a couple of variations for the formulas for the Best X race result fields but not having luck
Note: CL3:KG3 is the range from from round 1 to the final round columns
Also Note: Entered as Array Formulas (Ctrl-shift-enter)
Best 8 Race:
=MAX(IF(
IF(MOD(COLUMN($CL3:$KG3)-COLUMN($CL3)+0,3)=2,$CL3:$KG3,0)=8,
IF(MOD(COLUMN($CL3:$KG3)-COLUMN($CL3)+0,3)=0,$CL3:$KG3,0),0))
I originally had it as
=MAX(IF(
IF(MOD(COLUMN($CL3:$KG3)-COLUMN($CL3)+0,3)=2,$CL3:$KG3,0),8,
IF(MOD(COLUMN($CL3:$KG3)-COLUMN($CL3)+0,3)=0,$CL3:$KG3,0)))
But this just produced the max result no matter in the row irrespective of races etc.
Any help would be greatly appreciated
Love this board - has helped me for many years in finding solutions to my excel/vba problems.
I currently have this tricky one and have tried a few different Max(if(Mod(column..... iterations without much luck
I have my data in columns, with each row representing a different person, so can't rearrange things.
In basic terms the data I have looks something like this
[TABLE="class: grid, width: 800"]
<tbody>[TR]
[TD]Person[/TD]
[TD]Round 1[/TD]
[TD]Races[/TD]
[TD]Round 2[/TD]
[TD]Races[/TD]
[TD]Round 3[/TD]
[TD]Races[/TD]
[TD]Round 4[/TD]
[TD]Races[/TD]
[TD]Round 5[/TD]
[TD]Races[/TD]
[TD]Best 8 Race Result[/TD]
[TD]Best 9 Race Result[/TD]
[/TR]
[TR]
[TD]Name1[/TD]
[TD]15[/TD]
[TD]9[/TD]
[TD]12[/TD]
[TD]8[/TD]
[TD]10[/TD]
[TD]9[/TD]
[TD]13[/TD]
[TD]8[/TD]
[TD]23[/TD]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Now its various calculations that fill in the round results and # of races for each round.
Ive come up with a couple of variations for the formulas for the Best X race result fields but not having luck
Note: CL3:KG3 is the range from from round 1 to the final round columns
Also Note: Entered as Array Formulas (Ctrl-shift-enter)
Best 8 Race:
=MAX(IF(
IF(MOD(COLUMN($CL3:$KG3)-COLUMN($CL3)+0,3)=2,$CL3:$KG3,0)=8,
IF(MOD(COLUMN($CL3:$KG3)-COLUMN($CL3)+0,3)=0,$CL3:$KG3,0),0))
I originally had it as
=MAX(IF(
IF(MOD(COLUMN($CL3:$KG3)-COLUMN($CL3)+0,3)=2,$CL3:$KG3,0),8,
IF(MOD(COLUMN($CL3:$KG3)-COLUMN($CL3)+0,3)=0,$CL3:$KG3,0)))
But this just produced the max result no matter in the row irrespective of races etc.
Any help would be greatly appreciated