# Lookup & Indirect to Find Last Non Blank

#### anderb16

##### New Member
Hello,

I have data like this:

 Color Shape One Circle Two Red Three Square Two Three

What I'm doing is returning the value in column A in the last non blank row in column B regardless of the value.

Currently, in cell B5, I am using =LOOKUP(2,1/(\$B\$2:\$B\$4<>""),\$A\$2:\$A4) which correctly gives me "Two."

I have multiple individuals using this spreadsheet, manipulating data as they need and they frequently break the formula.

What I tried:

Which gives me an #N/A result

However, using:

Is it possible to do this without the helper?

Thanks!

### Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

#### Fluff

##### MrExcel MVP, Moderator
You're formula works for me, but how about
Excel Formula:
``=LOOKUP(2,1/(B\$2:INDEX(B:B,ROW()-1)<>""),A\$2:INDEX(A:A,ROW()-1))``

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,167,136
Messages
5,852,350
Members
431,497
Latest member

### 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.

### Which adblocker are you using?

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

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