#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Referencing sheets

"=Sheet2!B9"

I name my sheets to be the same value as the A collumn. It would help me if
I can replace "Sheet2" portion of the reference with a text from collumn A.

For example: If A1 has text "CARS," then B1 autamatically takes the value
and looks at sheet named "CARS" (=CARS!B9") Then A2 has text "BOATS" and
B2 looks at the sheet named "BOATS" (=BOATS!B9) I want to be a little bit
fancy here. I want the equation in the B collumn to be the same cut and paste
every thime I add "SCOOTERS", "PLANES", etc.

I don't want to manually edit the sheet name every time. Let it get the
sheet name for the A value.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Referencing sheets

Try using a formula such as:
=INDIRECT(A1 & "!B9")
where A1 contains the name of the sheet as you described. The formula
should fill down the sheet very nicely. Only thing that you'd have to change
would be the specific cell reference to B9 if that needs to change.


"Techclerk" wrote:

"=Sheet2!B9"

I name my sheets to be the same value as the A collumn. It would help me if
I can replace "Sheet2" portion of the reference with a text from collumn A.

For example: If A1 has text "CARS," then B1 autamatically takes the value
and looks at sheet named "CARS" (=CARS!B9") Then A2 has text "BOATS" and
B2 looks at the sheet named "BOATS" (=BOATS!B9) I want to be a little bit
fancy here. I want the equation in the B collumn to be the same cut and paste
every thime I add "SCOOTERS", "PLANES", etc.

I don't want to manually edit the sheet name every time. Let it get the
sheet name for the A value.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Referencing sheets

Minor, put potentially important change if any of your sheets have spaces in
their names. This will work for such sheets, and those that don't also:
=INDIRECT("'" & A1 & "'" & "!B9")
The odd looking portions are double-quote single-quote double-quote entries
to give sheet names this format 'my named sheet' for a formula that would
like
'my named sheet'!B9
to excel when it evaluates it.

"Techclerk" wrote:

"=Sheet2!B9"

I name my sheets to be the same value as the A collumn. It would help me if
I can replace "Sheet2" portion of the reference with a text from collumn A.

For example: If A1 has text "CARS," then B1 autamatically takes the value
and looks at sheet named "CARS" (=CARS!B9") Then A2 has text "BOATS" and
B2 looks at the sheet named "BOATS" (=BOATS!B9) I want to be a little bit
fancy here. I want the equation in the B collumn to be the same cut and paste
every thime I add "SCOOTERS", "PLANES", etc.

I don't want to manually edit the sheet name every time. Let it get the
sheet name for the A value.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Referencing sheets

Thank you. I tried that command but didn't understand it. I appreciate your
help.

"JLatham" wrote:

Minor, put potentially important change if any of your sheets have spaces in
their names. This will work for such sheets, and those that don't also:
=INDIRECT("'" & A1 & "'" & "!B9")
The odd looking portions are double-quote single-quote double-quote entries
to give sheet names this format 'my named sheet' for a formula that would
like
'my named sheet'!B9
to excel when it evaluates it.

"Techclerk" wrote:

"=Sheet2!B9"

I name my sheets to be the same value as the A collumn. It would help me if
I can replace "Sheet2" portion of the reference with a text from collumn A.

For example: If A1 has text "CARS," then B1 autamatically takes the value
and looks at sheet named "CARS" (=CARS!B9") Then A2 has text "BOATS" and
B2 looks at the sheet named "BOATS" (=BOATS!B9) I want to be a little bit
fancy here. I want the equation in the B collumn to be the same cut and paste
every thime I add "SCOOTERS", "PLANES", etc.

I don't want to manually edit the sheet name every time. Let it get the
sheet name for the A value.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Referencing sheets

Well, you were definitely on the right track and in there digging around to
try to solve your own problem. You get lots of points for that!

Sometimes the nuances and variations of use for many of the worksheet
functions are not intuitively obvious. This variation, as you can see, gives
a good deal of flexibility of usage for you.

Glad I could help and thanks for the feedback.

"Techclerk" wrote:

Thank you. I tried that command but didn't understand it. I appreciate your
help.

"JLatham" wrote:

Minor, put potentially important change if any of your sheets have spaces in
their names. This will work for such sheets, and those that don't also:
=INDIRECT("'" & A1 & "'" & "!B9")
The odd looking portions are double-quote single-quote double-quote entries
to give sheet names this format 'my named sheet' for a formula that would
like
'my named sheet'!B9
to excel when it evaluates it.

"Techclerk" wrote:

"=Sheet2!B9"

I name my sheets to be the same value as the A collumn. It would help me if
I can replace "Sheet2" portion of the reference with a text from collumn A.

For example: If A1 has text "CARS," then B1 autamatically takes the value
and looks at sheet named "CARS" (=CARS!B9") Then A2 has text "BOATS" and
B2 looks at the sheet named "BOATS" (=BOATS!B9) I want to be a little bit
fancy here. I want the equation in the B collumn to be the same cut and paste
every thime I add "SCOOTERS", "PLANES", etc.

I don't want to manually edit the sheet name every time. Let it get the
sheet name for the A value.

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
Referencing Sequential Sheets. the-big-john[_2_] Excel Discussion (Misc queries) 4 December 13th 07 06:19 PM
When referencing other Sheets JT Excel Discussion (Misc queries) 1 March 14th 07 05:36 PM
Referencing Different Sheets in VBA [email protected] Excel Discussion (Misc queries) 4 September 1st 06 05:57 AM
Referencing other sheets - updates shakey1181 Excel Discussion (Misc queries) 7 July 24th 06 01:59 AM
Formulas referencing other sheets eel77 Excel Discussion (Misc queries) 4 July 18th 05 07:34 AM


All times are GMT +1. The time now is 05:47 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"