Hi, You will need to set up two records for each Company. The first Needs to be the smallest shipment and the next needs to be the largest shipment. Your chart will looks something like the below option
NEW ENGLAND RETAIL INC. 02072 0 NEW ENGLAND RETAIL INC. 02072 20 INTERSTATE MOVING & STG 03840 20.01 INTERSTATE MOVING & STG 03840 38 COLT EXPRESS LLC 06040 38.01 COLT EXPRESS LLC 06040 60 Chris http://www.everydayVBA.com On Wednesday, May 9, 2012 9:01:41 PM UTC-6, lee wrote: > > *col i in Sheet 2 needs to be filled up . Can u please fill it up with > a formula. Vlook true is not working* > > by looking at sheet 1 col c value- either exact or next closest- I need > to get the closest value. examples in sheet attached. Exact is first > preference . if no exact is > found, then the next closest value should be the answer. > > say if the value i am searching is 220 and the values in the sheet close > to 220 are 240 and 212, 212 is the final answer since 212 is closer to 220 > then 240. Difference should be less. Thanks > -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com