Another way:
Layout
[TABLE="width: 228"]
<tbody>[TR]
[TD="width: 82, bgcolor: transparent"]
Weight Range[/TD]
[TD="width: 87, bgcolor: transparent"]
Max Box Weight[/TD]
[TD="width: 82, bgcolor: transparent"]
Rate Upcharge[/TD]
[TD="width: 52, bgcolor: transparent"]
Box Rate[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
6[/TD]
[TD="bgcolor: transparent, align: right"]
6[/TD]
[TD="bgcolor: transparent, align: right"]
20%[/TD]
[TD="bgcolor: transparent"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
30[/TD]
[TD="bgcolor: transparent, align: right"]
10[/TD]
[TD="bgcolor: transparent, align: right"]
25%[/TD]
[TD="bgcolor: transparent"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
159[/TD]
[TD="bgcolor: transparent, align: right"]
17[/TD]
[TD="bgcolor: transparent, align: right"]
25%[/TD]
[TD="bgcolor: transparent"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
1000[/TD]
[TD="bgcolor: transparent, align: right"]
17[/TD]
[TD="bgcolor: transparent, align: right"]
25%[/TD]
[TD="bgcolor: transparent"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
99999[/TD]
[TD="bgcolor: transparent, align: right"]
17[/TD]
[TD="bgcolor: transparent, align: right"]
25%[/TD]
[TD="bgcolor: transparent"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]
*[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]
Real Situation[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]
Weight[/TD]
[TD="bgcolor: transparent"]
Max Box Weight[/TD]
[TD="bgcolor: transparent"]
Rate Upcharge[/TD]
[TD="bgcolor: transparent"]
Box Rate[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
0,9[/TD]
[TD="bgcolor: yellow"][/TD]
[TD="bgcolor: yellow"][/TD]
[TD="bgcolor: yellow"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
1[/TD]
[TD="bgcolor: yellow, align: right"]
6[/TD]
[TD="bgcolor: yellow, align: right"]
0,2[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
5[/TD]
[TD="bgcolor: yellow, align: right"]
6[/TD]
[TD="bgcolor: yellow, align: right"]
0,2[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
6[/TD]
[TD="bgcolor: yellow, align: right"]
6[/TD]
[TD="bgcolor: yellow, align: right"]
0,2[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
6,01[/TD]
[TD="bgcolor: yellow, align: right"]
10[/TD]
[TD="bgcolor: yellow, align: right"]
0,25[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
9[/TD]
[TD="bgcolor: yellow, align: right"]
10[/TD]
[TD="bgcolor: yellow, align: right"]
0,25[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
17[/TD]
[TD="bgcolor: yellow, align: right"]
10[/TD]
[TD="bgcolor: yellow, align: right"]
0,25[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
24[/TD]
[TD="bgcolor: yellow, align: right"]
10[/TD]
[TD="bgcolor: yellow, align: right"]
0,25[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
25[/TD]
[TD="bgcolor: yellow, align: right"]
10[/TD]
[TD="bgcolor: yellow, align: right"]
0,25[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
29[/TD]
[TD="bgcolor: yellow, align: right"]
10[/TD]
[TD="bgcolor: yellow, align: right"]
0,25[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
33[/TD]
[TD="bgcolor: yellow, align: right"]
17[/TD]
[TD="bgcolor: yellow, align: right"]
0,25[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
150[/TD]
[TD="bgcolor: yellow, align: right"]
17[/TD]
[TD="bgcolor: yellow, align: right"]
0,25[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
267[/TD]
[TD="bgcolor: yellow, align: right"]
17[/TD]
[TD="bgcolor: yellow, align: right"]
0,25[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
384[/TD]
[TD="bgcolor: yellow, align: right"]
17[/TD]
[TD="bgcolor: yellow, align: right"]
0,25[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
501[/TD]
[TD="bgcolor: yellow, align: right"]
17[/TD]
[TD="bgcolor: yellow, align: right"]
0,25[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
618[/TD]
[TD="bgcolor: yellow, align: right"]
17[/TD]
[TD="bgcolor: yellow, align: right"]
0,25[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
735[/TD]
[TD="bgcolor: yellow, align: right"]
17[/TD]
[TD="bgcolor: yellow, align: right"]
0,25[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
852[/TD]
[TD="bgcolor: yellow, align: right"]
17[/TD]
[TD="bgcolor: yellow, align: right"]
0,25[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
969[/TD]
[TD="bgcolor: yellow, align: right"]
17[/TD]
[TD="bgcolor: yellow, align: right"]
0,25[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
1086[/TD]
[TD="bgcolor: yellow, align: right"]
17[/TD]
[TD="bgcolor: yellow, align: right"]
0,25[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
1203[/TD]
[TD="bgcolor: yellow, align: right"]
17[/TD]
[TD="bgcolor: yellow, align: right"]
0,25[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
9900[/TD]
[TD="bgcolor: yellow, align: right"]
17[/TD]
[TD="bgcolor: yellow, align: right"]
0,25[/TD]
[TD="bgcolor: yellow"]
$5.00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
18597[/TD]
[TD="bgcolor: yellow"][/TD]
[TD="bgcolor: yellow"][/TD]
[TD="bgcolor: yellow"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]
27294[/TD]
[TD="bgcolor: yellow"][/TD]
[TD="bgcolor: yellow"][/TD]
[TD="bgcolor: yellow"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]
***************[/TD]
[TD="bgcolor: transparent"]
****************[/TD]
[TD="bgcolor: transparent"]
***************[/TD]
[TD="bgcolor: transparent"]
*********[/TD]
[/TR]
</tbody>[/TABLE]
Formula
Code:
In B10
=IF(($A10<1)+($A10>9999),"",INDEX(B$2:B$6,MATCH(0,INDEX(-($A$2:$A$6<$A10),),0)))
Markmzz