Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default indirect formula syntax

Hello,
I have been given a workbook with two worksheets. The first sheet is named
summary and the second sheet is named ...o&b. I am trying to use the
indirect formula to return a value into the summary sheet from the ...o&b
sheet. So far I have tried the following in the summary sheet.

A1 B1
'...o&&b' =indirect(A1,"!C16")
i.e I am attempting to lookup the value in ...o&b!c16 and return it to cell
B1 by reference to cell A1.
However, this doesn't seem to work. I think the ampersand is an illegal
character. I can't change the worksheet names as the workbook has been
exported from a centralised mainframe.

Any help appreciated.

Graeme.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default indirect formula syntax

You need to build up your composite string representing the cell reference
and then pass it as a parameter to INDIRECT, like this:

=INDIRECT(A1&"!C16")

Hope this helps.

Pete

"Graeme" <graeme wrote in message
...
Hello,
I have been given a workbook with two worksheets. The first sheet is named
summary and the second sheet is named ...o&b. I am trying to use the
indirect formula to return a value into the summary sheet from the ...o&b
sheet. So far I have tried the following in the summary sheet.

A1 B1
'...o&&b' =indirect(A1,"!C16")
i.e I am attempting to lookup the value in ...o&b!c16 and return it to
cell B1 by reference to cell A1.
However, this doesn't seem to work. I think the ampersand is an illegal
character. I can't change the worksheet names as the workbook has been
exported from a centralised mainframe.

Any help appreciated.

Graeme.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default indirect formula syntax

Sometimes, worksheet names require apostrophes around their names.

If they have spaces, if they're numeric, if they look like addresses...

=INDIRECT("'"&A1&"'!c16")

Those apostrophes won't hurt if you don't need them, either.

Graeme wrote:

Hello,
I have been given a workbook with two worksheets. The first sheet is named
summary and the second sheet is named ...o&b. I am trying to use the
indirect formula to return a value into the summary sheet from the ...o&b
sheet. So far I have tried the following in the summary sheet.

A1 B1
'...o&&b' =indirect(A1,"!C16")
i.e I am attempting to lookup the value in ...o&b!c16 and return it to cell
B1 by reference to cell A1.
However, this doesn't seem to work. I think the ampersand is an illegal
character. I can't change the worksheet names as the workbook has been
exported from a centralised mainframe.

Any help appreciated.

Graeme.


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
formula syntax. Babs Excel Discussion (Misc queries) 3 February 23rd 08 10:56 AM
Syntax on Indirect() Jim May Excel Discussion (Misc queries) 4 December 6th 07 02:15 PM
Indirect and Sumif Syntax Problems [email protected] Excel Discussion (Misc queries) 3 August 4th 06 01:59 AM
Formula syntax {;;;} Simplefi Excel Worksheet Functions 2 June 20th 05 05:48 PM
INDIRECT syntax? stephen.reading100 Excel Worksheet Functions 2 April 22nd 05 01:52 AM


All times are GMT +1. The time now is 07:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"