How to use concatenate in a vlookup formula

ron.bo

Board Regular
Joined
Mar 15, 2011
Messages
124
I am trying to use "&" in a vlookup to do a lookup on a differant sheet that is listed in cell B1, the formula I created is =VLOOKUP(A7,"Sheet"&B1&"!"&"A1:J40",5,0), "Sheet"&B1&"!"&"A1:J40" = Sheet48!A1:J25 (with 48 in cell B1) which is exactly what it should be. But it returns #VALUE! error. What am I doing wrong?

Thanks, for any help


 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Marcílio_Lobão

Well-known Member
Joined
Oct 7, 2013
Messages
777
Office Version
  1. 2007
Platform
  1. Windows
ron.bo, Good evening.

Try to use: =VLOOKUP(A7, INDIRECT("Sheet" & B1 & "!" &"A1:J40"), 5,0)

Please, tell us if it worked for you.

I hope it helps.
 
Solution

Watch MrExcel Video

Forum statistics

Threads
1,129,438
Messages
5,636,288
Members
416,911
Latest member
jafornwalt

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