lookup values from a list of different ranges to determine the right value

Mehow

New Member
Joined
Feb 23, 2018
Messages
15
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
range
25mm
min
max
400
300
394
425
395
419
450
420
444
475
445
469
500
470
494
525
495
519
550
520
544
575
545
569
600
570
594
625
595
619
650
620
644
675
645
669
700
670
694
725
695
719
750
720
744
775
745
769
800
770
794
825
795
819
850
820
844
875
845
869

<tbody>
</tbody>

Client Ordered25
lwlw
412
750
400
664
502 547
610
751

620 540
<colgroup><col width="64" style="width: 48pt;" span="4"> <tbody> </tbody>

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?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try:

=IF(E1>MAX($C$2:$C$21),"Error",IFERROR(LOOKUP(E1,$B$2:$B$21,$A$2:$A$21),"Error"))

With E1 holding the 412, 625 etc.
 
Upvote 0

Forum statistics

Threads
1,214,534
Messages
6,120,086
Members
448,944
Latest member
sharmarick

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