+ Reply to Thread
Results 1 to 5 of 5

Changing linked cell row reference

  1. #1
    Registered User
    Join Date
    11-14-2009
    Location
    Leeds, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Changing linked cell row reference

    I have a master summary sheet that contains all the required information for 21 other worksheets. Each row contains the information for a single sheet. I have linked all the relative cells to the first sheet but would like create a formula that changes the row reference in each of the links rather than the tedious task of updating each individual link in every sheet.

    I have tried using the indirect function but constantly get errors returned, the basic formula i have been using is:
    =INDIRECT("Summary"!C&,X1)

    'C' is the column in the summary sheet that the information should be taken and 'X1' is the cell in the worksheet that will define what row the data should be taken e.g in one sheet the reference for that specific cell will be C5 and the next C6 and so on.

    Hope I have explained this correctly, I have been going round in circles for hours now but can't figure out where i am going wrong

  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: Changing linked cell row reference

    You're almost there! Try

    =INDIRECT("Summary!C"&X1)

    You may also need single quotes around the sheet name if the sheet name includes one or more spaces, like this:

    =INDIRECT("'Monthly Summary'!C"&X1)
    Last edited by teylyn; 11-14-2009 at 07:07 AM.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Changing linked cell row reference

    Quote Originally Posted by kta79
    I have a master summary sheet that contains all the required information for 21 other worksheets. Each row contains the information for a single sheet.
    Further to teylyn's post (in which solution has been provided) I would say that the above implies that the sheet names could be listed in a given column on each of the 21 rows, say in Column A with the row numbers in row 1 ?

    At which point, say first sheet is in A2, second in A3 etc and first row to be referenced is in X1, second in Y1 and so on and so forth, then

    X2: =INDIRECT("'"&$A2&"'!C"&X$1)

    which could be copied across and down for the remaining cell references and sheets.

    the use of sheet names in A saves having to update the sheet names in use in each formula on each of the 21 rows.

  4. #4
    Registered User
    Join Date
    11-14-2009
    Location
    Leeds, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Changing linked cell row reference

    Works perfectly and will save me hours.

    Thank you very much

  5. #5
    Registered User
    Join Date
    05-15-2014
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Changing linked cell row reference

    Dear All,

    I have an excel with various sheets, in summary , I want only the last column of all the sheets. Please give the formula

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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