Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.links
Alberto Pinto
 
Posts: n/a
Default Variable Links to Tabsheets

Hi!

How can I make a link to another sheet be dependable on one cell value
(without ifs)?

I give you an example:

I have a worksheet with three sheets ('Sheet1','Sheet2', and 'Sheet3')
In 'Sheet1' I have two cells:
A1 - Its value can be 'Sheet2' or 'Sheet3'
A2 - It has a formula (for example: 'Sheet2'!B1)

I would like to make a formula like this one for cell A2: *A1*!B1
and the Excel to "substitute" the * for Sheet2 or Sheet3 depending on
the value in A1.

I hope i explained it ok.

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.links
Barb Reinhardt
 
Posts: n/a
Default Variable Links to Tabsheets

I'm not sure what you want, but let me make a stab at it.

Let's say you have the following:
A1=Sheet2
A2 = numeric (from your formula) - let's say it's 23

I'm now assuming you want to concatenate these two cells.


=A1&A2
=Sheet223
I'm guessing this isn't what you want. You probably want something more
like this


=A1&"!A"&A2
=Sheet2!A23

This will not give you the value in Sheet2!A23. What you need is the
following:

=INDIRECT(A1&"!A"&A2)

If this isn't what you want, please come back and clarify.

"Alberto Pinto" wrote in message
...
Hi!

How can I make a link to another sheet be dependable on one cell value
(without ifs)?

I give you an example:

I have a worksheet with three sheets ('Sheet1','Sheet2', and 'Sheet3')
In 'Sheet1' I have two cells:
A1 - Its value can be 'Sheet2' or 'Sheet3'
A2 - It has a formula (for example: 'Sheet2'!B1)

I would like to make a formula like this one for cell A2: *A1*!B1
and the Excel to "substitute" the * for Sheet2 or Sheet3 depending on the
value in A1.

I hope i explained it ok.

Thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.links
Bill Manville
 
Posts: n/a
Default Variable Links to Tabsheets

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

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup

  #4   Report Post  
Posted to microsoft.public.excel.links
Alberto Pinto
 
Posts: n/a
Default Variable Links to Tabsheets

Alberto Pinto wrote:
Hi!

How can I make a link to another sheet be dependable on one cell value
(without ifs)?

I give you an example:

I have a worksheet with three sheets ('Sheet1','Sheet2', and 'Sheet3')
In 'Sheet1' I have two cells:
A1 - Its value can be 'Sheet2' or 'Sheet3'
A2 - It has a formula (for example: 'Sheet2'!B1)

I would like to make a formula like this one for cell A2: *A1*!B1
and the Excel to "substitute" the * for Sheet2 or Sheet3 depending on
the value in A1.

I hope i explained it ok.

Thanks in advance


Sorry I couldn't answer sooner!

Thank you for your help!
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
options to update automatic links Werner Rohrmoser Excel Worksheet Functions 0 November 10th 05 01:58 PM
Prompt to update links Werner Rohrmoser Links and Linking in Excel 0 November 3rd 05 10:47 AM
Deleting links to other spreadsheets KarenH Excel Worksheet Functions 2 October 28th 05 04:09 AM
can't update links...can't find links GJR3599 Excel Discussion (Misc queries) 1 April 4th 05 04:56 PM
Using variable in external links automne Excel Discussion (Misc queries) 1 March 7th 05 12:35 AM


All times are GMT +1. The time now is 08:35 PM.

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

About Us

"It's about Microsoft Excel"