From entered string value, compare to a column, and nearest match returns adjacent column

srands

Board Regular
Joined
Jun 24, 2010
Messages
115
I want a formula (In K17 of this SPREADSHEET), to return adjacent column, from opposite column NEAREST/CLOSEST value, to entered string.

Spreadsheet link
http://www.excelforum.com/attachment.php?attachmentid=136789&d=1326823678

This spreadsheet has working VLOOKUP formula that was suggested elsewhere, however I wanted a formula different to VLOOKUP, something I can get to grips with more easily, hence any other suggestions welcome:

Q1). If I wanted a formula alternative OTHER then VLOOKUP, (Such as IF, COUNTIF or TRANSPOSE) what would the formula be?

Q2). The VLOOKUP formula returns ONE ROW before, when it should be the NEXT ROW. What would the corrected formula be?

For example, if K8 = 10 MPG,
then the COST per MILE (K17) should equal = £0.613 (Row 7),
however the value returned by the VLOOKUP formula is the previous row (£0.638 Row 6), this is for the row for 9.8 MPG the nearest to 10 MPG before going over 10 MPG.
I guess to edit the VLOOKUP will be simple enough, but I'm not familiar with the VLOOKUP formulas.

Cheers Stephan

CROSSTHREAD HYPERLINKS:
http://www.excelforum.com/excel-gen...losest-value-to-entered-string.html?p=2685086
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,214,981
Messages
6,122,565
Members
449,089
Latest member
Motoracer88

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