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


Lookup in Excel

Posted on 2011-03-11
Medium Priority
Last Modified: 2012-05-11
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?
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
LVL 50

Expert Comment

by:barry houdini
ID: 35107940
See attached for examples of both formulas.....


Author Comment

by:Lawrence Salvucci
ID: 35107945
Hi Barry,

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

Author Comment

by:Lawrence Salvucci
ID: 35107948
nevermind. I see your file now and it's working.

Author Closing Comment

by:Lawrence Salvucci
ID: 35107951
Thanks for the quick response! Much appreciated!

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question