x
• Status: Solved
• Priority: Medium
• Security: Public
• Views: 262

# Lookup in Excel

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
Lawrence Salvucci
• 3
• 2
1 Solution

Commented:
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

Commented:
See attached for examples of both formulas.....

barry
26879978.xlsx
0

Information Technology ManagerAuthor Commented:
Hi Barry,

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

Information Technology ManagerAuthor Commented:
nevermind. I see your file now and it's working.
0

Information Technology ManagerAuthor Commented:
Thanks for the quick response! Much appreciated!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.