Using INDIRECT with a concatenated reference

GreenyMcDuff

Active Member
Joined
Sep 20, 2010
Messages
313
Hi all,

I am using this formula to look up values from another worksheet:

Code:
=VLOOKUP($B9,INDIRECT("'"&$B10&"'!$A:$W"),D$4,0)

This formula works fine.

However, I now need the sheet reference to be B10 but with " - Table (1" at the end of it.

So assuming cell b10 had the word Apples in it the vlookup would read:
Code:
=VLOOKUP($B9,'Apples - Table (1'!$A:$W"),D$4,0)

I have tried to concatenate this in the formula but have got nowhere fast.

Hopefully someone can help me :)

Thanks

Chris
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
This works for me. Just be careful that the string you're creating below exactly matches your worksheet name (i.e., spaces around the dash, etc.)

=VLOOKUP($B9,INDIRECT("'"&$B10&" - Table (1'!$A:$W"),D$4,0)
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,908
Members
452,949
Latest member
beartooth91

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