Select next value up in a vlookup if value does not match exactly

karloqs

New Member
Joined
Feb 19, 2020
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
I am trying to use a vlookup formula to select the correct price for the matching item in my range of data.
However, If the the size of the item in my data list falls between size a category in my lookup table, I want the formula to select the price from next highest row up and not nearest value if the nearest value match is lower.

If the data exceeds the lookup value, it needs to select the price from the next highest line.


e.g

See example screen shot below.

if the size from my data works out to 0.13 - I want the formula to select the price from the 0.2 price line range and not 0.1 line

Currently I am using a very simple vlookup =VLOOKUP(E4,$L$5:$M$18,2,TRUE)

1613514143791.png



My Lookup table is similar to this.
1613513732934.png


Hope all of this makes sense and thanks to anyone in advance for any advise you are able to offer.

Regards

Karl
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Maybe you can use this example:

Map2
ABCDE
1sizepricesize0,25
2110price3
30,99
40,88
50,77
60,66
70,55
80,44
90,33
100,22
110,11
Blad1
Cell Formulas
RangeFormula
E2E2=INDEX(B2:B11,MATCH(E1,A2:A11,-1))
 
Upvote 0
Thanks for this - Its worked perfectly. I had to rearrange my lookup/ index date data from highest to lowest then it all worked exactly as I hoped. Thanks so much for the reply
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,434
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top