+ Reply to Thread
Results 1 to 4 of 4

INDIRECT AND changing reference

  1. #1
    Registered User
    Join Date
    02-12-2007
    Posts
    7

    INDIRECT AND changing reference

    Hi
    I need an Indirect formula to look up data from a different sheet. However, rows may be added to the other sheet so I need that part of the formula to be relative.
    On my Summary Sheet I have the formula:

    =INDIRECT(C7&"!I"&18)

    C7 Is the name of a sheet: "Data1"
    I18 contains my value to pick up

    This works fine. However If i add a row to my Sheet Data1 my indirect formula stays the same and continues to look to I18 - my data has moved to I19 though.

    This spreadsheet has lots of sheets all needing to be looked up and summarised on the Summary sheet.

    Anyone come accross this.

    love some helo

    thanks
    Sally

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Relative references like that only work on the current sheet, or in non-INDIRECT connections to other sheets.

    The whole point of INDIRECT is to not have to go to 30 individual sheets to create these reference links.

    So, when you add a new row to your existing source sheets, you have to add that to ALL the source sheets to keep them identical. And then you will have to adjust your INDIRECT formula manually in at least one cell...but then you can just copy that across to put that change into the other similar INDIRECT spots, right?
    _________________
    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!)

  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
    TIP:

    If you're not through designing your source sheets, wait on designing your tally sheets.

    Or, in your source sheets, consider putting the some of the key numbers you know you're going to tally elsewhere near the TOP of the source sheets, so as you add logic and rows below, that data stays put.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    you could indirectly reference a cell in the data sheet that is unlikely to move say data1!a1
    and a1 in turn references l18 (=l18)
    then if rows are added after row A the reference will auto adjust

+ 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