Hi fellow excellers
I want to pass a cell reference that contains the name of a worksheet and range to a VLOOKUP type function. Is it possible ?
eg I have 3 worksheets may, june and july each with range A1:B6. Column A is constant across all sheets but B contains differing monthly data that I want to pass to another sheet.
In 4th worksheet "Report" (say) I want the user to enter into cell A5 the respective worksheet name (may, june or july) and range parameters and for various VLOOKUP (or other) functions to use this info to retrieve the data from the respective worksheet.
I searched this site but couldn't find anything that seemed to fit the bill although there was one post that used INDEX and MATCH which may prove useful, otherwise I'll have to use a macro.
Any ideas ?
Thanks
Tony
I want to pass a cell reference that contains the name of a worksheet and range to a VLOOKUP type function. Is it possible ?
eg I have 3 worksheets may, june and july each with range A1:B6. Column A is constant across all sheets but B contains differing monthly data that I want to pass to another sheet.
In 4th worksheet "Report" (say) I want the user to enter into cell A5 the respective worksheet name (may, june or july) and range parameters and for various VLOOKUP (or other) functions to use this info to retrieve the data from the respective worksheet.
I searched this site but couldn't find anything that seemed to fit the bill although there was one post that used INDEX and MATCH which may prove useful, otherwise I'll have to use a macro.
Any ideas ?
Thanks
Tony