+ Reply to Thread
Results 1 to 5 of 5

Problem with Indirect when I try to link data to multiple worksheets

  1. #1
    Registered User
    Join Date
    07-04-2014
    Location
    Bellevue, Wa
    MS-Off Ver
    2010
    Posts
    2

    Question Problem with Indirect when I try to link data to multiple worksheets

    Hey All,

    I have been trying this for the past 3 days now but I am missing something and not able to do it.


    [B] [G] [H] [I] [J]...
    [1] 2013 2014 2015 2016
    [2] 500 588 676 764
    [3]Horse 11 22 33 44 - Final File--------> This is where I enter the formulas by referencing it to respective sheets.
    [4]Dog 12 23 34 45
    [5]Cat 13 24 35 46
    [6]Not living 14 25 36 47



    [B] [G] [H] [I] [J]...
    [1] 2013 2014 2015 2016
    [2] 500 588 676 764 Driver From factory sheet---> This is the sheet that I reference to for my output.
    [3]Horse 11 22 33 44
    [4]Dog 12 23 34 45
    [5]Cat 13 24 35 46
    [6]Not living 14 25 36 47




    The formula that I am using is:

    =INDEX(INDIRECT("'"&$B$11&"'!$G$3:$J$6"),MATCH($B3,INDIRECT("'"&$B$11&"'!$B$3:$B$6"),0),MATCH(G$1,INDIRECT("'"&$B$11&"'!$G$1:$J$1"),0))

    Where, $B$11 refers to the drop down cell that I created (in this case Driver from factory) to choose any particular sheet from the list of available sheets with the same formats with the intent that I should be able to change the sheet names using the drop down and get the result in my final sheet at any time.
    However, the problem that I am facing is that if i insert a row anywhere between B3 and B6 in Driver from factory sheet my formulas in the Final file do not change accordingly and I get #NA for values referring to row B6.

    Is there a way that if a row is inserted in the driver from factory file, it does not affect the final file and I get the output as I were to get if there was no row inserted in the driver from factory file.

    Thanks for your help, I really need your help to break this.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Problem with Indirect when I try to link data to multiple worksheets

    Just change the range as below.
    =INDEX(INDIRECT("'"&$B$11&"'!$G$3:$J$60"),MATCH($B3,INDIRECT("'"&$B$11&"'!$B$3:$B$60"),0),MATCH(G$1,INDIRECT("'"&$B$11&"'!$G$1:$J$1"),0))

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Problem with Indirect when I try to link data to multiple worksheets

    Quote Originally Posted by kvsrinivasamurthy View Post
    =INDEX(INDIRECT("'"&$B$11&"'!$G$3:$J$60"),MATCH($B3,INDIRECT("'"&$B$11&"'!$B$3:$B$60"),0),MATCH(G$1,INDIRECT("'"&$B$11&"'!$G$1:$J$1"),0))
    Quoted range references inside the INDIRECT function will automatically get evaluated as absolute references so there's no need for the dollar signs $.

    =INDEX(INDIRECT("'"&$B$11&"'!G3:J60"),MATCH($B3,INDIRECT("'"&$B$11&"'!B3:B60"),0),MATCH(G$1,INDIRECT("'"&$B$11&"'!G1:J1"),0))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    07-04-2014
    Location
    Bellevue, Wa
    MS-Off Ver
    2010
    Posts
    2

    Unhappy Re: Problem with Indirect when I try to link data to multiple worksheets

    The sample file that I posted was just an abstract from a very large file of a financial model. In reality, I have data below and above Row B so changing the range from G3:J6 to G3:J60 would actually translate to including rows that belong to other KPI's.

    Also, I am looking to apply the formula to different line items within KPI's such as revenues, cost, etc and this would cause a problem.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Problem with Indirect when I try to link data to multiple worksheets

    This will take care irrespective of total rows. But System may become slow.
    Please Login or Register  to view this content.
    Another alternative is, if total rows does not exceed even after insertion rows beyond say 20000
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] indirect formula to link worksheets
    By ajun in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-23-2013, 06:29 AM
  2. Using indirect to create modifiable formulas that link multiple worksheets?
    By linesout in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-01-2013, 12:27 PM
  3. [SOLVED] How do I link lots of data in multiple worksheets
    By ALSEGUY in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-17-2006, 05:35 PM
  4. [SOLVED] Link Data from Multiple Worksheets
    By Danedel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-05-2006, 06:35 AM
  5. INDIRECT.EXT problem with missing worksheets
    By Barb Reinhardt in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-18-2005, 09:05 PM

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