+ Reply to Thread
Results 1 to 3 of 3

Linking Sheets

  1. #1
    Registered User
    Join Date
    05-06-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Linking Sheets

    I have a spreadsheet that tracks my spending for the month. Right now I have a sheet for each month. Every month I make a new sheet that has some cell references linking it to the previous month particular cells. The way it is now, I have to manually change the sheet name that is referenced so that the correct months data will be displayed. I want to not have to manually change this every month. I would like to know if there is a formula that will link sheets and know to change with additional sheets.

    Right now in the cell I have the following:
    ='April-10'!P4
    I have to change the month and year (April-10), sheet name when I go to make a sheet for May. Thus it will look like this:
    ='May-10'!P4
    I would like to not have to manually change the month and want to just copy and paste the sheet titled April-10 to another sheet named May-10 and this update will already be done.

    This will have to work for June-10 sheet and July-10 sheet and so on.

    If anyone knows please help.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Linking Sheets but not as easy as it sounds

    Hello Jab,

    welcome to the forum.

    Unfortunately, Excel does not have any native formula to refer to the previous sheet. As a workaround, you can enter the name of the previous sheet into a cell on the current sheet, for example A1. Then use Indirect() to construct the cell reference

    =indirect(A1&"!P4")

    Note, though, that Indirect() is a volatile function, which means that it will recalculate every time any cell is changed in the sheet. If you only have a few dozen Indirect() on your sheet, you probably won't notice, but if you get into several hundreds of Indirect() on one sheet, you may notice that Excel becomes slow.

    cheers.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Linking Sheets but not as easy as it sounds

    You might get good results by just duplicating the sheet, then using the CTRL-H (Search/Replace) feature to search for the old sheetname and replace it with the new sheet name.

    Be sure to go into the Options and set it to search in Formulas instead of the default setting of Values.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1