How to use CELL contents in a FORMULA to look at specific WORKSHEET

Improving

New Member
Joined
Apr 8, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello,

My first post. Tried searching but not even sure if I'm using the correct names.

What I'm trying to do is use a CELL contents (contains SHEET NAME) in a FORMULA.

Example:
Working in Sheet 1

B1= XX
A1 = Sheet 2

In Sheet 2
Range needed in Sheet 2 = A1:D4

What I want to do is have the VLOOKUP look in whatever Sheet name specified in A1
What notation do I need to enter to get this to work where the formula will look at whatever Sheet specified in cell A1?

In cell C1 type, what?

=VLOOKUP(B1,'Sheet 2'!A1:D4,3,FALSE) this is what I want but with Sheet 2 as a variable based on A1

I need "Sheet 2" to be whatever specified in cell A1, could be Sheet 3, Sheet 4, etc...

Hope this makes sense for those reading!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi & welcome to MrExcel.
How about
Excel Formula:
=VLOOKUP(B1,INDIRECT("'"&A1&"'!A1:D4"),3,FALSE)
 
Upvote 0
AWESOME!

Thank you so very much.... I did see the INDIRECT item but not sure how it works. Will read up a bit more on that!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,194
Members
453,021
Latest member
pingpong7117

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