Lookup with tolerance

seacrest

Active Member
Joined
Aug 15, 2002
Messages
301
Hello, I have a column with measurements in mm eg 4000 these represent timber lengths
I also have a column of available lengths on a separate sheet. eg 4200
I would like to lookup or match a length that can be used ie 4000 can be cut from 4200

So basically I am looking for a method to search with a tolerance of say 300mm so that the maximum waist would be no more then 300mm
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
if the waste is going to be more than the 300m, how do you want to proceed.

Can you please provide examples.
 
Upvote 0
ok, let's say you have your timber lengths in range E4:E29

and your available lengths in M4:M11 ... this list must be sorted in ascending order

then, let's say, in G4, enter ... =IF(ISERROR(INDEX($E$4:$M$29,MATCH(E4,$M$4:$M$11,-1),9)),"",IF(INDEX($E$4:$M$29,MATCH(E4,$M$4:$M$11,-1),9)-E4>300,"",INDEX($E$4:$M$29,MATCH(E4,$M$4:$M$11,-1),9)))

let me know if that is not what you're looking for

Kind regards,

Chris
 
Upvote 0
oops, sorry, I meant to say the list in M4:M11 should be sorted in Descending order !!!!!!

Chris
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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