# VLOOKUP 256 Character Limit Solution

#### Chlwls808

##### Board Regular
Hi,

I have a VLOOKUP function which searches values in one column for a keyword located in a separate cell. The problem is that because there's a 256 character limit for any VLOOKUP, any string that goes beyond that will result in #N/A.

I've seen some VBA solutions out there that can fix this type of issues but it didn't work for my scenario (at least I wasn't able to get it to work).

Currently, my VLOOKUP function looks like this:

=VLOOKUP(G15&"*",D3:D32,1,0)

I've tried using combination of Index and match function like below, but it doesn't work:

=INDEX(D3:D32,MATCH(TRUE,INDEX(D3:D32=G15&"*",0),0))

Does anyone know how to resolve this issue?

### Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

#### RoryA

##### MrExcel MVP, Moderator
Try something like:

=lookup(2,1/ISNUMBER(SEARCH(G15,D3:D32)),D3:D32)

#### Chlwls808

##### Board Regular
Try something like:

=lookup(2,1/ISNUMBER(SEARCH(G15,D3:D32)),D3:D32)
Thank you! You saved the day!

Replies
7
Views
591
Replies
1
Views
132
Replies
11
Views
216
Replies
0
Views
179
Replies
4
Views
289

1,147,451
Messages
5,741,202
Members
423,648
Latest member
steel1968

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