VLOOKUP On Dynamic Range Returns Only #N/A

goss

Active Member
Joined
Feb 2, 2004
Messages
372
Hi,

Using Excel 2016.

I created a Dynamic Range of items on Test!
lstItems=Test!A$2:INDEX(Test!A:A,COUNTA(Test!A:A))

On another sheet I have a VLOOKUP formula
=VLOOKUP(B2,lstItems,1,FALSE)

The formula only returns #N/A on 11,036 attempts.

I can visually see that the item exists on both sheets.

What am i doing wrong?

thanks
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Added absolutes to the dynamic range. Solved.
=Test!A$2:INDEX(Test!$A:$A,COUNTA(Test!$A:$A))
 
Upvote 0
Lazy perhaps , but the value in A1 is never going to find a match. Why not use the whole column, as the RefersTo for your named range, like this...

=test!$A:$A

It may not be good enough for some jobs, but is fine for this task :)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,970
Messages
6,175,718
Members
452,667
Latest member
vanessavalentino83

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