Hi all,
I'm trying to think of a formula to lookup values from a list to decide a right size product for an order.
For example - this is the range
[TABLE="width: 2"]
<tbody>[TR]
[TD="width: 192, bgcolor: transparent, colspan: 3"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"] [/TD]
[TD="width: 53, bgcolor: transparent"] [/TD]
[TD="width: 59, bgcolor: transparent"] [/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 192"]
<colgroup><col width="64" style="width: 48pt;" span="4"> <tbody>[TR]
[TD="width: 128, bgcolor: transparent, colspan: 2"]Client Ordered[/TD]
[TD="width: 128, bgcolor: transparent, colspan: 2"]25
[/TD]
[/TR]
[TR]
[/TR]
[TR]
[TD="bgcolor: transparent"]l[/TD]
[TD="bgcolor: transparent"]w[/TD]
[TD="bgcolor: transparent"]l[/TD]
[TD="bgcolor: transparent"]w[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]412
[/TD]
[TD="bgcolor: transparent"]750 [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]400
[/TD]
[TD="bgcolor: transparent"]664
[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]502 [/TD]
[TD="bgcolor: transparent"]547
[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]610
[/TD]
[TD="bgcolor: transparent"]751
[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]620 [/TD]
[TD="bgcolor: transparent"]540
[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
</tbody>[/TABLE]
I need a formula to determine that if the number is 412 - the correct size will be 425 (as you can see in the min/max range)
and if it's 625 the value should be 650.. and so on.
Any ideas?
I'm trying to think of a formula to lookup values from a list to decide a right size product for an order.
For example - this is the range
[TABLE="width: 2"]
<tbody>[TR]
[TD="width: 192, bgcolor: transparent, colspan: 3"]
range
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
25mm
[TD="width: 53, bgcolor: transparent"]
min
[TD="width: 59, bgcolor: transparent"]
max
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
400
[TD="width: 53, bgcolor: transparent"]
300
[TD="width: 59, bgcolor: transparent"]
394
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
425
[TD="width: 53, bgcolor: transparent"]
395
[TD="width: 59, bgcolor: transparent"]
419
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
450
[TD="width: 53, bgcolor: transparent"]
420
[TD="width: 59, bgcolor: transparent"]
444
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
475
[TD="width: 53, bgcolor: transparent"]
445
[TD="width: 59, bgcolor: transparent"]
469
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
500
[TD="width: 53, bgcolor: transparent"]
470
[TD="width: 59, bgcolor: transparent"]
494
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
525
[TD="width: 53, bgcolor: transparent"]
495
[TD="width: 59, bgcolor: transparent"]
519
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
550
[TD="width: 53, bgcolor: transparent"]
520
[TD="width: 59, bgcolor: transparent"]
544
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
575
[TD="width: 53, bgcolor: transparent"]
545
[TD="width: 59, bgcolor: transparent"]
569
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
600
[TD="width: 53, bgcolor: transparent"]
570
[TD="width: 59, bgcolor: transparent"]
594
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
625
[TD="width: 53, bgcolor: transparent"]
595
[TD="width: 59, bgcolor: transparent"]
619
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
650
[TD="width: 53, bgcolor: transparent"]
620
[TD="width: 59, bgcolor: transparent"]
644
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
675
[TD="width: 53, bgcolor: transparent"]
645
[TD="width: 59, bgcolor: transparent"]
669
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
700
[TD="width: 53, bgcolor: transparent"]
670
[TD="width: 59, bgcolor: transparent"]
694
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
725
[TD="width: 53, bgcolor: transparent"]
695
[TD="width: 59, bgcolor: transparent"]
719
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
750
[TD="width: 53, bgcolor: transparent"]
720
[TD="width: 59, bgcolor: transparent"]
744
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
775
[TD="width: 53, bgcolor: transparent"]
745
[TD="width: 59, bgcolor: transparent"]
769
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
800
[TD="width: 53, bgcolor: transparent"]
770
[TD="width: 59, bgcolor: transparent"]
794
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
825
[TD="width: 53, bgcolor: transparent"]
795
[TD="width: 59, bgcolor: transparent"]
819
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
850
[TD="width: 53, bgcolor: transparent"]
820
[TD="width: 59, bgcolor: transparent"]
844
[/TR]
[TR]
[TD="width: 80, bgcolor: transparent"]
875
[TD="width: 53, bgcolor: transparent"]
845
[TD="width: 59, bgcolor: transparent"]
869
[/TR]
</tbody>[/TABLE]
[TABLE="width: 192"]
<colgroup><col width="64" style="width: 48pt;" span="4"> <tbody>[TR]
[TD="width: 128, bgcolor: transparent, colspan: 2"]Client Ordered[/TD]
[TD="width: 128, bgcolor: transparent, colspan: 2"]25
[/TD]
[/TR]
[TR]
[/TR]
[TR]
[TD="bgcolor: transparent"]l[/TD]
[TD="bgcolor: transparent"]w[/TD]
[TD="bgcolor: transparent"]l[/TD]
[TD="bgcolor: transparent"]w[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]412
[/TD]
[TD="bgcolor: transparent"]750 [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]400
[/TD]
[TD="bgcolor: transparent"]664
[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]502 [/TD]
[TD="bgcolor: transparent"]547
[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]610
[/TD]
[TD="bgcolor: transparent"]751
[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"]
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]620 [/TD]
[TD="bgcolor: transparent"]540
[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
</tbody>[/TABLE]
I need a formula to determine that if the number is 412 - the correct size will be 425 (as you can see in the min/max range)
and if it's 625 the value should be 650.. and so on.
Any ideas?