Worksheet name

G

Guest

I would like to refer to a worksheet name from a cell value
is there a formula equivalent to the VBA Worksheets(Range("A1").Value)
I want to use this in a vlookup function
=VLOOKUP(I27,Input!C10:D18,2,FALSE)
Where Input! would be replaced by Worksheets(Range("A1").Value)
and Range("A1")=Input
Thanks
 
G

Guest

This returns the worksheet name.
I want to do something different.
I have the worksheet name already in cell A1, and what to use this in a
formula.
Any idea.
Thanks
 
R

Roger Govier

Hi Caroline

Use INDIRECT()
=VLOOKUP(I27,INDIRECT("'"&A1&"'!C10:D18"),2,FALSE)

Note the additional single quotes
INDIRECT( " ' "&A1 & " ' !C10:D18 ")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top