Lookup Value not working

CodyMonster

Board Regular
Joined
Sep 28, 2009
Messages
159
Code:
=LOOKUP(2,1/(sheet1!A3&":"&ADDRESS(MATCH(K4,sheet1!E:E,0),1,4,1,)<>"0"),sheet1!A3&":"&ADDRESS(MATCH(K4,sheet1!E:E,0),1,4,1,))

What am I doing wrong here?
It should work? No?
 
Last edited:

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
It isn't a vlookup I'm trying to find the last non blank field in a range. But the range is based off the match. From A3:A(the row in the match function).
For some reason it's bombing out.
 
Upvote 0
If I change the formula to
=LOOKUP(2,1/(sheet1!A3&":"&ADDRESS(MATCH(K4,sheet1!E:E,0),1,4,1,)<>"0"),sheet1!A:A)

I get the first non-blank cell.. not what I'm looking for.
The prior formula would bring back #value

What I'm trying to achieve:


A 10
20
30
B 40
50


My match function is looking for the row in col B. For example I'm looking up 30 I want to return A.
If I was looking for 50 it would return B. I was trying to keep the range bound by where the number is found.
If I was looking for 30 I would keep the range for the lookup at A1:A3. Looking for 50 the range would be A1:A5.
That way when its looking for the last blank cell it would only pick up what is in the range.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

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