VLOOKUP with variable sheet name

raikks

Board Regular
Joined
Feb 23, 2020
Messages
53
Office Version
  1. 2019
Platform
  1. Windows
Book1
AB
1Mike54
2
3Sheet2
Sheet1
Cell Formulas
RangeFormula
B1B1=VLOOKUP(A1,Sheet2!$A$1:$B$5,2,0)

Book1
AB
1Alex91
2Adriana40
3John84
4Diana25
5Mike54
Sheet2

Book1
AB
1James79
2Robert76
3Patricia94
4Mary18
5Thomas91
Sheet3


I have and Excel file with 3 spreadsheets.
In Sheet1, in VLOOKUP formula (cell B1), instead of modifying the name of the sheet into the formula, is it possible to link cell A3 with cell B1?
So instead of { =VLOOKUP(A1,Sheet2!$A$1:$B$5,2,0) } to have something like { =VLOOKUP(A1,A3!$A$1:$B$5,2,0) } ?
I would basically like to input data only in cells A1 and A3 and cell B1 to update automatically.
I'm not sure if I made myself clear...
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Try this:
Excel Formula:
=VLOOKUP(A1,INDIRECT("'"&$A$3&"'!"&"$A$1:$B$5"),2,0)
 
Upvote 0
Solution
I can't stop smiling - it works perfect.
Thank you!
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,446
Members
449,083
Latest member
Ava19

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