I had this sorted yesterday, but too much clicking of the Undo and lost it.
I have two numbers in cells F5 and F6 and need to match the higher value to a list, displaying either the match or if not matched, the next value in sequence.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]0.375[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]0.5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]0.25[/TD]
[TD]0.50[/TD]
[TD]1.00[/TD]
[TD]2.00[/TD]
[TD]3.00[/TD]
[/TR]
</tbody>[/TABLE]
In this case, searching for the result of max(F5:F6) should return a value of 0.50 from range F8:J8.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]0.625[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]0.50[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]0.25[/TD]
[TD]0.50[/TD]
[TD]1.00[/TD]
[TD]2.00[/TD]
[TD]3.00[/TD]
[/TR]
</tbody>[/TABLE]
But in this case, searching for the result of max(F5:F6) should return the value of 1.00 from range F8:J8.
Should the result of max(F5:F6) be greater than J8, I need to trap it as an error.
Yesterdays solution was so simple.
Many thanks.
I have two numbers in cells F5 and F6 and need to match the higher value to a list, displaying either the match or if not matched, the next value in sequence.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]0.375[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]0.5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]0.25[/TD]
[TD]0.50[/TD]
[TD]1.00[/TD]
[TD]2.00[/TD]
[TD]3.00[/TD]
[/TR]
</tbody>[/TABLE]
In this case, searching for the result of max(F5:F6) should return a value of 0.50 from range F8:J8.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]0.625[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]0.50[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]0.25[/TD]
[TD]0.50[/TD]
[TD]1.00[/TD]
[TD]2.00[/TD]
[TD]3.00[/TD]
[/TR]
</tbody>[/TABLE]
But in this case, searching for the result of max(F5:F6) should return the value of 1.00 from range F8:J8.
Should the result of max(F5:F6) be greater than J8, I need to trap it as an error.
Yesterdays solution was so simple.
Many thanks.
Last edited: