Please post code in VBA tags (even pseudo-code) - to do this Edit your last post, highlight pseduo-code and press the # icon.
Re: your question... it seems you want to find a value in row 2 and create a range 20 rows x 2 columns, is that correct ?
So perhaps something along the lines of:
Note use of Application.Function over WorksheetFunction.Function ... the former makes life easier handling errors as you can see with vMatch... if no Match of "somevalue" is found on Row 2 vMatch will hold an Error value and thus VLookup won't proceed... if VLookup fails vAns will hold Error value else it will hold resulting value.
In truth I'm find it hard to interpret/visualize what it is you're trying to do... the above is a stab in the dark.
Bookmarks