VLOOKUP 256 Character Limit Solution

Chlwls808

Board Regular
Joined
Jun 20, 2021
Messages
51
Office Version
  1. 2016
Platform
  1. Windows
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?

Appreciate your help!
 

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
Joined
May 2, 2008
Messages
37,746
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
  2. MacOS
Try something like:

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

Forum statistics

Threads
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.
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
Top