Worksheet name
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 |
Worksheet name
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 |
Worksheet name
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 |
Worksheet name
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 |
All times are GMT +1. The time now is 07:30 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com