How to use concatenate in a vlookup formula

ron.bo

Board Regular
Joined
Mar 15, 2011
Messages
129
Office Version
  1. 2007
Platform
  1. Windows
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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
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.
 
Upvote 0
Solution

Forum statistics

Threads
1,214,846
Messages
6,121,905
Members
449,054
Latest member
luca142

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