Seeking help with a lookup problem

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))

If this returns noting (i.e. the cell in the table is empty), is there way to force it to lookup the value in the cell directly below and return it?

Many thanks

John
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
You could do something simple like:

=if(isblank(INDEX(A2:I26,MATCH(A1,A2:A26,0),MATCH(C1,A2:I2,0))),INDEX(A2:I26,MATCH(A1,A2:A26,0)+1,MATCH(C1,A2:I2,0)),INDEX(A2:I26,MATCH(A1,A2:A26,0),MATCH(C1,A2:I2,0)))

But, what happens if there is a blank below the blank?

Also note that isblank() is different than "".
 
Upvote 0
Hi, thanks for your suggestion.

If there is a blank below the blank, would there be anyway to force it to check the next cell and so on?

Would vba work here?

Thank you
 
Upvote 0

Forum statistics

Threads
1,214,386
Messages
6,119,215
Members
448,874
Latest member
b1step2far

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