VLOOKUP with table array/sheet wildcards

MarginalDPS

New Member
Joined
Aug 10, 2016
Messages
3
Hello all,

I'm certain this is out there somewhere, but I've done a lot of searching and can't seem to find a solution for this VLOOKUP question. Although, there's also a strong possibility that I'm misunderstanding the available information...

I'm trying to do a VLOOKUP using a specific lookup value on one sheet, and I need for it to search a range of cells in another sheet that doesn't always have the same name.

=VLOOKUP(A2,"*"&ExportedData_&"*"!A:E,5,FALSE)

I imagine (hope) there is a painfully simple answer.

Thank you!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Try:
Code:
=VLOOKUP("*"&A2&"*",ExportedData_!A:E,5,FALSE)
 
Upvote 0
Try:
Code:
=VLOOKUP("*"&A2&"*",ExportedData_!A:E,5,FALSE)

Thank you so much for the suggestion, AhoyNC! Unfortunately it's a no go. The ExportedData tab name is always followed by a random set of numbers (Ex: ExportedData_233422, ExportedData_9457827, ExportedData_2973334, etc.). So I think it needs to account for that inconsistency.
 
Upvote 0
You could have the lookup value in A1 and the sheet name in B1 using this:

=VLOOKUP(A1,INDIRECT("'"&B1&"'!A:E"),5,0)
 
Upvote 0

Forum statistics

Threads
1,216,109
Messages
6,128,876
Members
449,476
Latest member
pranjal9

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