Hi Caroline
Use INDIRECT()
=VLOOKUP(I27,INDIRECT("'"&A1&"'!C10:D18"),2,FALSE)
Note the additional single quotes
INDIRECT( " ' "&A1 & " ' !C10:D18 ")
--
Regards
Roger Govier
"caroline" wrote in message
...
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
--
caroline
"Bob Phillips" wrote:
See http://www.xldynamic.com/source/xld.xlFAQ0002.html
--
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my
addy)
"caroline" wrote in message
...
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
--
caroline