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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,215,026
Messages
6,122,743
Members
449,094
Latest member
dsharae57

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