+ Reply to Thread
Results 1 to 5 of 5

Big File Using a lot of INDIRECT formulas

  1. #1
    Forum Contributor
    Join Date
    11-19-2019
    Location
    Michigan
    MS-Off Ver
    Office 365
    Posts
    546

    Big File Using a lot of INDIRECT formulas

    I am building a file which is highly sensitive, at the end of my build it will have over 200 sheetse. In some of the sheets I use alot of INDIRECT formulas and I have read that these are highly volatile and makes the file super slow.

    Here is a sample of a formula that is in one of my sheets.

    =INDEX(INDIRECT("'"&$B9&"'!e20:q130"),MATCH($A9,INDIRECT("'"&$B9&"'!A20:A100"),0),MATCH(K$7,INDIRECT("'"&$B9&"'!e26:q26"),0))

    Can anyone offer any help with perhaps a different formula that is a bit quicker so I can reference specific cells in sheets?

    Perhaps if I change this now in my file I can save myself headaches down the road.

    Much appreciated.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,052

    Re: Big File Using a lot of INDIRECT formulas

    We don't need to see your real sheet. However, a mocked up sample would be really helpful.

    Here is an alternative, using CHOOSE. It has the advantage of being non-volatile, but will have a huge problem with unweildyness (if such a word exists) in a book with 200 odd sheets.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: Big File Using a lot of INDIRECT formulas

    Upload a sample file.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Big File Using a lot of INDIRECT formulas

    I've worked with an Excel workbook with fewer worksheets but over 50K cells with formulas calling INDIRECT. It's quite slow.

    Referring to the worksheet containing the cell with your formula as x, given the form of this formula, you want the value in the cell in E20:Q130 in the worksheet named in x!B9 for which x!A9 matches A20:A100 (note: there are 111 rows in E20:Q130, but only 81 rows in A20:A100; was one or the other a typo?) and x!K7 matches E26:Q26 (you're looking up a value in a row inside E20:Q130?) in the worksheet named in x!B9.

    Are these formulas in just a few worksheets and most of the worksheets which could be named in x!B9 are mostly data or have formulas which don't call INDIRECT? Are most of the formulas calling INDIRECT referring to relative small ranges like A20:Q130? If so, you may be A LOT BETTER OFF consolidating data from all the worksheets which could be named in x!B9 into a single table in a single worksheet with worksheet name and type fields added to the other 17 columns in A20:Q130. Something like (abbreviated)

    ws type field1 field2 field3
    a _fields_ region a b
    a _data_ a 111 112
    a _data_ b 121 122
    a _data_ c 131 132
    b _fields_ division p q
    b _data_ E 1 2
    b _data_ C 3 4
    b _data_ W 5 6
    c _fields_ unit x y
    c _data_ 1.1 a d
    c _data_ 2.7 b e
    c _data_ 4.3 c f

    then index into that table.

  5. #5
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,416

    Re: Big File Using a lot of INDIRECT formulas

    I feel that the formula you provide is always a bit weird, try to change it like this see how

    =INDEX(INDIRECT("'"&$B9&"'!e20:q130"),MATCH($A9,INDIRECT("'"&$B9&"'!A20:A130"),0),MATCH(K$7,INDIRECT("'"&$B9&"'!e19:q19"),0))

+ 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 & vlookup formulas
    By tshepolt in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-21-2020, 08:12 AM
  2. [SOLVED] Two indirect formulas with different results
    By Berna11 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-09-2019, 04:22 AM
  3. How to add INDIRECT to all formulas
    By jlowens25 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-22-2019, 05:15 PM
  4. [SOLVED] reading contents of a file without opening the file using INDIRECT function
    By luv2glyd in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2013, 01:55 PM
  5. [SOLVED] Indirect formulas
    By monza2 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-25-2012, 10:09 PM
  6. Indirect formulas help
    By dlaidlaw in forum Excel General
    Replies: 2
    Last Post: 02-16-2011, 04:33 AM
  7. Help with Indirect formulas...
    By cpaavola in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-13-2009, 12:36 PM

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