Amend VLOOKUP Formula to point to a cell with 'Sheet name' as opposed to using the 'Sheet name' itself

Nick70

Active Member
Joined
Aug 20, 2013
Messages
301
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a VLOOKUP formula in Sheet1 which points to Sheet2.

Formula is:
Excel Formula:
=VLOOKUP(B6,Sheet2!$B5$:$C$9,2,FALSE)

I would like to amend the formula so that instead of pointing to Sheet2! it points to Cell B4 which has text 'Sheet2'.

This way if sheet name Sheet2 changes or if I want to point formula to a different Sheet (e.g. Sheet3) I can just type in a different sheet name in cell B4.

How do I do this?

What does the new VLOOKUP formula look like?

Thanks,
Nic :unsure:
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
How about
Excel Formula:
=VLOOKUP(B6,indirect("'"&b4&"'!$B5$:$C$9"),2,FALSE)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,310
Messages
6,124,188
Members
449,147
Latest member
sweetkt327

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