• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 262
  • Last Modified:

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
Asked:
Lawrence Salvucci
  • 3
  • 2
1 Solution
 
barry houdiniCommented:
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
 
barry houdiniCommented:
See attached for examples of both formulas.....

barry
26879978.xlsx
0
 
Lawrence SalvucciInformation Technology ManagerAuthor Commented:
Hi Barry,

I tried your formula but it's always pulling .2580 as the diameter as the size to use.
0
 
Lawrence SalvucciInformation Technology ManagerAuthor Commented:
nevermind. I see your file now and it's working.
0
 
Lawrence SalvucciInformation Technology ManagerAuthor Commented:
Thanks for the quick response! Much appreciated!
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now