# 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

Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

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

Replies
3
Views
176
Replies
1
Views
325
Replies
4
Views
50
Replies
11
Views
520
Replies
1
Views
55

1,130,119
Messages
5,640,219
Members
417,131
Latest member
Seanr19871

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