Solved

Lookup in Excel

Posted on 2011-03-11
5
246 Views
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?
Sample-File.xlsx
0
Comment
Question by:Lawrence Salvucci
  • 3
  • 2
5 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 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

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

barry
26879978.xlsx
0
 
LVL 1

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.
0
 
LVL 1

Author Comment

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

Author Closing Comment

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

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now