Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JT Spitz
 
Posts: n/a
Default indirect cell reference using copies of worksheets in same workboo

Whenever I copy a worksheet in the same workbook, I get the name followed by
(#). EG worksheet February copies to a new worksheet named February(2).
When i reference that worksheet name in the indirect function through the
cell I set up for the worksheet name, I get the REF error. Does indirect not
work with parenthesis?

The help screen doesn't really discuss this and all the information I
previously received only mentioned spaces in my worksheet names.

I have already figured out that if I change the name to something like
FebruaryB, it would work, but I would like to find out if this is absolutely
necessary.

Thanks.

  #2   Report Post  
Gord Dibben
 
Posts: n/a
Default

JT

Note that February (2) contains a space.

Sheetnames with spaces must be surrounded by quotes. That's why your change
to FebruaryB works.....no space.

Try =INDIRECT("'"&K3&"'!F5")

Where K3 contains the sheetname February (2)


Gord Dibben Excel MVP



On Tue, 14 Jun 2005 15:23:02 -0700, "JT Spitz"
wrote:

Whenever I copy a worksheet in the same workbook, I get the name followed by
(#). EG worksheet February copies to a new worksheet named February(2).
When i reference that worksheet name in the indirect function through the
cell I set up for the worksheet name, I get the REF error. Does indirect not
work with parenthesis?

The help screen doesn't really discuss this and all the information I
previously received only mentioned spaces in my worksheet names.

I have already figured out that if I change the name to something like
FebruaryB, it would work, but I would like to find out if this is absolutely
necessary.

Thanks.


  #3   Report Post  
JT Spitz
 
Posts: n/a
Default

While I agree that a space is put in automatically, I manually edited that
out so that is read February(2). And I still got the REF error. So the
question is still, does Indirect work with parenthesis?

Thanks

JT

"Gord Dibben" wrote:

JT

Note that February (2) contains a space.

Sheetnames with spaces must be surrounded by quotes. That's why your change
to FebruaryB works.....no space.

Try =INDIRECT("'"&K3&"'!F5")

Where K3 contains the sheetname February (2)


Gord Dibben Excel MVP



On Tue, 14 Jun 2005 15:23:02 -0700, "JT Spitz"
wrote:

Whenever I copy a worksheet in the same workbook, I get the name followed by
(#). EG worksheet February copies to a new worksheet named February(2).
When i reference that worksheet name in the indirect function through the
cell I set up for the worksheet name, I get the REF error. Does indirect not
work with parenthesis?

The help screen doesn't really discuss this and all the information I
previously received only mentioned spaces in my worksheet names.

I have already figured out that if I change the name to something like
FebruaryB, it would work, but I would like to find out if this is absolutely
necessary.

Thanks.



  #4   Report Post  
Gord Dibben
 
Posts: n/a
Default

JT

On further experimentation, I find I still must enter the single quotes around
the sheetname no matter if a space or not when the name contains parens.

So.....Indirect does not seem to work with parens unless the single quotes are
added.

At least, in my experience.


Gord

On Tue, 14 Jun 2005 16:25:02 -0700, "JT Spitz"
wrote:

While I agree that a space is put in automatically, I manually edited that
out so that is read February(2). And I still got the REF error. So the
question is still, does Indirect work with parenthesis?

Thanks

JT

"Gord Dibben" wrote:

JT

Note that February (2) contains a space.

Sheetnames with spaces must be surrounded by quotes. That's why your change
to FebruaryB works.....no space.

Try =INDIRECT("'"&K3&"'!F5")

Where K3 contains the sheetname February (2)


Gord Dibben Excel MVP



On Tue, 14 Jun 2005 15:23:02 -0700, "JT Spitz"
wrote:

Whenever I copy a worksheet in the same workbook, I get the name followed by
(#). EG worksheet February copies to a new worksheet named February(2).
When i reference that worksheet name in the indirect function through the
cell I set up for the worksheet name, I get the REF error. Does indirect not
work with parenthesis?

The help screen doesn't really discuss this and all the information I
previously received only mentioned spaces in my worksheet names.

I have already figured out that if I change the name to something like
FebruaryB, it would work, but I would like to find out if this is absolutely
necessary.

Thanks.




  #5   Report Post  
JT Spitz
 
Posts: n/a
Default

Okay, thanks for the assist. It will be easier for me to just change the
worksheet tab names. Removing the parens causes the names to become dates,
which also causes the REF error and there are too many other cells using the
Indirect function for me to edit them all.

How does the saying go, you pay your dime and take your chances? Guess this
is going to cost me a quarter, at least. :)

Have a good one.

JT

"Gord Dibben" wrote:

JT

On further experimentation, I find I still must enter the single quotes around
the sheetname no matter if a space or not when the name contains parens.

So.....Indirect does not seem to work with parens unless the single quotes are
added.

At least, in my experience.


Gord

On Tue, 14 Jun 2005 16:25:02 -0700, "JT Spitz"
wrote:

While I agree that a space is put in automatically, I manually edited that
out so that is read February(2). And I still got the REF error. So the
question is still, does Indirect work with parenthesis?

Thanks

JT

"Gord Dibben" wrote:

JT

Note that February (2) contains a space.

Sheetnames with spaces must be surrounded by quotes. That's why your change
to FebruaryB works.....no space.

Try =INDIRECT("'"&K3&"'!F5")

Where K3 contains the sheetname February (2)


Gord Dibben Excel MVP



On Tue, 14 Jun 2005 15:23:02 -0700, "JT Spitz"
wrote:

Whenever I copy a worksheet in the same workbook, I get the name followed by
(#). EG worksheet February copies to a new worksheet named February(2).
When i reference that worksheet name in the indirect function through the
cell I set up for the worksheet name, I get the REF error. Does indirect not
work with parenthesis?

The help screen doesn't really discuss this and all the information I
previously received only mentioned spaces in my worksheet names.

I have already figured out that if I change the name to something like
FebruaryB, it would work, but I would like to find out if this is absolutely
necessary.

Thanks.






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
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
how to create a variable column in cell reference Sampson Excel Worksheet Functions 3 February 21st 05 10:13 PM
Is there a forumla to link an absolute cell reference in multiple. Thomas Excel Worksheet Functions 2 February 5th 05 04:15 PM
HOW DO I REFERENCE A CELL FROM THE RESULTS OF TWO WORKSHEETS TD Excel Discussion (Misc queries) 1 December 14th 04 03:16 PM
Using a formula in a Hyperlink Cell reference sslabbe Excel Discussion (Misc queries) 4 December 10th 04 12:30 AM


All times are GMT +1. The time now is 09:07 AM.

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"