[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
Solved

# Lookup in Excel

Posted on 2011-03-11
Medium Priority
260 Views
I'm trying to create a lookup to find the optimal size to use in the attached file. In column A I have my finish sizes. In column H I have the starting sizes. What I need to do is find the next largest size from Column H that is greater than .0050 from the finish size in column A and put that size in column B. How can I do this?
Sample-File.xlsx
0
Question by:Lawrence Salvucci
• 3
• 2

LVL 50

Accepted Solution

barry houdini earned 2000 total points
ID: 35107932
Can you sort H2:H17, they are mostly sorted I think but H17 is out of order. If you sort that range then you can use this formula in B2 copied down

=IFERROR(IF(A2+0.00499<H\$2,H\$2,INDEX(H\$2:H\$17,MATCH(A2+0.00499,H\$2:H\$17)+1)),"No larger size")

...or a shorter array formula to do the same

=IFERROR(SMALL(IF(H\$2:H\$17>=A2+0.005,H\$2:H\$17),1),"No larger size")

confirmed with CTRL+SHIFT+ENTER

regards, barry
0

LVL 50

Expert Comment

ID: 35107940
See attached for examples of both formulas.....

barry
26879978.xlsx
0

LVL 1

Author Comment

ID: 35107945
Hi Barry,

I tried your formula but it's always pulling .2580 as the diameter as the size to use.
0

LVL 1

Author Comment

ID: 35107948
nevermind. I see your file now and it's working.
0

LVL 1

Author Closing Comment

ID: 35107951
Thanks for the quick response! Much appreciated!
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
###### Suggested Courses
Course of the Month17 days, 20 hours left to enroll