Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 168
Default Formula to reference sheet number base on cell

I've done this before, but I can't remember how. I need to reference a
sheet number based on another cell.

For example:
='Sheet1'!A1+A2

In my situation, I need to reference the Sheet number where the number will
be in a cell. Let's say that the number "1" is in A5. In my formula above
I need something that will say Sheet & A2 which will be "Sheet1".

How can I do this?

Thanks,


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Formula to reference sheet number base on cell

You are looking for INDIRECT... Since you have used it before I will not go
into the details...
--
HTH...

Jim Thomlinson


"PCLIVE" wrote:

I've done this before, but I can't remember how. I need to reference a
sheet number based on another cell.

For example:
='Sheet1'!A1+A2

In my situation, I need to reference the Sheet number where the number will
be in a cell. Let's say that the number "1" is in A5. In my formula above
I need something that will say Sheet & A2 which will be "Sheet1".

How can I do this?

Thanks,



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 168
Default Formula to reference sheet number base on cell

Well I figured out the simple formula. However, I'm having trouble fitting
it into a larger scale formula.

Here is what I've got.
="Sheet"& ROW(INDIRECT(AH1&":"&$AH$1))

I'm not sure if that is exactly right, but it works.

Now I need to fit that into a larger formula, but I'm having trouble. Here
is the current formula.

=RIGHT('Sheet1'!A1,(LEN('Sheet1'!A1)-(LEN(AF1)+40)))

Where it shows "Sheet1", I need to fit in the Indirect formula that I listed
above.
Any ideas?

Thanks,
Paul


"Jim Thomlinson" wrote in message
...
You are looking for INDIRECT... Since you have used it before I will not
go
into the details...
--
HTH...

Jim Thomlinson


"PCLIVE" wrote:

I've done this before, but I can't remember how. I need to reference a
sheet number based on another cell.

For example:
='Sheet1'!A1+A2

In my situation, I need to reference the Sheet number where the number
will
be in a cell. Let's say that the number "1" is in A5. In my formula
above
I need something that will say Sheet & A2 which will be "Sheet1".

How can I do this?

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
How do I reference a cell as a row number in a formula? wileye Excel Discussion (Misc queries) 5 December 13th 09 07:20 PM
How to reference or redirect a formula in a base row? Paul Schrum Excel Worksheet Functions 3 August 15th 08 10:40 PM
Use cell value as reference to sheet in formula? bluegnu Excel Worksheet Functions 4 July 20th 06 01:33 PM
Changing Cell Reference in a macro on global base ashish128 Excel Discussion (Misc queries) 2 April 20th 06 01:16 PM
Need formula for sheet & cell reference MPH Excel Worksheet Functions 0 January 16th 05 03:39 PM


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