I have column A containing the names of all worksheets in the workbook.
I can enter a formula e.g ="Sheet1"!D1 which gives me the contents of
cell D1 on Sheet1
How do I enter a formula that substitutes the sheet name from another cell?
e.g =A1!D1 where A1 on the current worksheet contains the text "Sheet1"
Thanks

Signature
Regards,
Nigel
nigelnospam@9sw.co.uk
Roger Govier - 05 Dec 2007 14:28 GMT
Hi Nigel
Try
=INDIRECT("'"&A1&"'!D1")
Not the mixture of single and double quotes
" ' " 7 A1 & " ' !D1 "

Signature
Regards
Roger Govier
> I have column A containing the names of all worksheets in the workbook.
>
[quoted text clipped - 7 lines]
>
> Thanks
Nigel - 05 Dec 2007 17:22 GMT
Thanks Roger. Works a treat

Signature
Regards,
Nigel
nigelnospam@9sw.co.uk
> Hi Nigel
>
[quoted text clipped - 16 lines]
>>
>> Thanks
Jan Kronsell - 05 Dec 2007 14:28 GMT
Try
=INDIRECT(A1&"!D1")
Jan
>I have column A containing the names of all worksheets in the workbook.
>
[quoted text clipped - 7 lines]
>
> Thanks