Vlookup, if no match search another sheet using first 7 characters

Mike820

New Member
Joined
Jul 24, 2019
Messages
21
Can someone help me with a formula; I’d like to run a Vlookup For values in column J against a column in another sheet. If nothing is found then Vlookup only using the first 7 characters in column J to a column in another sheet and only it’s first 7 characters.

thanks,
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Are the values on the other sheet more than 7 characters?
If so, can you insert a new column to the left of that column, that takes just the first 7 characters, i.e.
If the value you are matching against is in column A originally, insert a column before it and use this formula:
=LEFT(A1,7)

If you can do that, then you can do your VLOOKUP structured something like this:
Code:
=IFERROR(VLOOKUP(J1,Sheet2!B:C,...),VLOOKUP(LEFT(J1,7),Sheet2!A:C,...))
 
Upvote 0
Try this

=IFERROR(VLOOKUP(J1,sheet4!A:B,2,0),IFERROR(VLOOKUP(LEFT(J1,7)&"*",Sheet5!A:B,2,0),"Dont exists"))
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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