Seeking help with a lookup problem

Status
Not open for further replies.

abberyfarm

Well-known Member
Joined
Aug 14, 2011
Messages
733
Hi,

I am using the following formula to look up a number in a table:

=INDEX(A2:I26,MATCH(A1,A2:A26,0),MATCH(C1,A2:I2,0))

However, there are a number of blank cells in the table. If this formula returns noting (i.e. the cell in the table is empty), would anybody know if there is a way to get it to return the nearest available value below.

For example, I look up the value in the red cell, but it is empty so it returns the Green cell instead.

Excel Workbook
YZAAABAC
4620320330345
472187015575
4816583405
491651200145
50015630113173
Expected Parking Time




Many thanks

John
 

Some videos you may like

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
Status
Not open for further replies.

Watch MrExcel Video

Forum statistics

Threads
1,122,511
Messages
5,596,581
Members
414,079
Latest member
Frills

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
Top