Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
captain stephen
 
Posts: n/a
Default Referencing Sheet Tabs

Excel 2003. I produce a weekly cash report. Each new weekly report refers to
several cells on the previous week's sheet. I produce each new sheet by
copying the last one and changing its name. I then have to update the
formulas so that they look at the now previous sheet. Is there some way to
enter the sheet tab name into a formula so that the name of the tab is taken
from another cell.
  #2   Report Post  
Ed Ferrero
 
Posts: n/a
Default

Hi captain,

Lets say
cell A1 contains the sheet name
cell A2 contains the row no
cell A3 contains the column no
of the cell you wish to find.

Then =ADDRESS(A2,A3,,,A1) will give you the cell address
and =INDIRECT(ADDRESS(A2,A3,,,A1)) will give
the contents of that cell.

Ed Ferrero

"captain stephen" <captain wrote in
message ...
Excel 2003. I produce a weekly cash report. Each new weekly report refers
to
several cells on the previous week's sheet. I produce each new sheet by
copying the last one and changing its name. I then have to update the
formulas so that they look at the now previous sheet. Is there some way to
enter the sheet tab name into a formula so that the name of the tab is
taken
from another cell.



  #3   Report Post  
captain stephen
 
Posts: n/a
Default

Sorted. Thanks for that.

"Ed Ferrero" wrote:

Hi captain,

Lets say
cell A1 contains the sheet name
cell A2 contains the row no
cell A3 contains the column no
of the cell you wish to find.

Then =ADDRESS(A2,A3,,,A1) will give you the cell address
and =INDIRECT(ADDRESS(A2,A3,,,A1)) will give
the contents of that cell.

Ed Ferrero

"captain stephen" <captain wrote in
message ...
Excel 2003. I produce a weekly cash report. Each new weekly report refers
to
several cells on the previous week's sheet. I produce each new sheet by
copying the last one and changing its name. I then have to update the
formulas so that they look at the now previous sheet. Is there some way to
enter the sheet tab name into a formula so that the name of the tab is
taken
from another cell.




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

Captain

If you're willing to go with a user defined function.

Copy/paste this User Defined Function to a general module in your workbook.

Function PrevSheet(rg As Range)
N = Application.Caller.Parent.Index
If N = 1 Then
PrevSheet = CVErr(xlErrRef)
ElseIf TypeName(Sheets(N - 1)) = "Chart" Then
PrevSheet = CVErr(xlErrNA)
Else
PrevSheet = Sheets(N - 1).Range(rg.Address).Value
End If
End Function

'Enter =PrevSheet(B2) on sheet2 and you'll get B2 from sheet1.

When you copy this sheet, the formulas will refer to the prior sheet as long
as the prior sheet is to the left of new sheet.


Gord Dibben Excel MVP

On Thu, 31 Mar 2005 15:05:06 -0800, captain stephen <captain
wrote:

Excel 2003. I produce a weekly cash report. Each new weekly report refers to
several cells on the previous week's sheet. I produce each new sheet by
copying the last one and changing its name. I then have to update the
formulas so that they look at the now previous sheet. Is there some way to
enter the sheet tab name into a formula so that the name of the tab is taken
from another cell.


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
I want to print out the sheet tabs (sheet names) Sundus Excel Worksheet Functions 3 February 23rd 05 08:34 PM
Referencing an Entire Sheet Chaplain Doug Excel Discussion (Misc queries) 2 December 22nd 04 04:59 PM
Sheet tabs disappear sometimes in Internet Explorer Jan Nordgreen Excel Discussion (Misc queries) 0 December 6th 04 01:34 AM
Naming & renaming a sheet tab Cgbilliar Excel Worksheet Functions 1 November 7th 04 05:57 PM
Graphs and sheet referencing? Graham Excel Worksheet Functions 2 October 31st 04 11:37 PM


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