+ Reply to Thread
Results 1 to 9 of 9

Formula (INDIRECT & Array) suddenly stopped working

  1. #1
    Registered User
    Join Date
    06-13-2021
    Location
    Amsterdam
    MS-Off Ver
    365
    Posts
    6

    Formula (INDIRECT & Array) suddenly stopped working

    Dear friends,

    Just now my indirect formula stopped working, whilst I am 99% confident nothing changed.

    To provide some context; I am pulling specific data points from a number of worksheets. To make this process easier I am using a combination of INDIRECT and array.

    Exact example:

    =INDIRECT("'["&i.Name.file.data.Workbook&"]"&x.Name.sheet.list.Worksheet&"'!Revenues")

    My workbook array name is a single cell, since it is just one workbook (i.Name.file.data.Workbook)
    My worksheet array name is a list / column with different values (Worksheet 1, Worksheet 2, Worksheet 3 etc.) (x.Name.sheet.list.Worksheet)

    Suddenly this no longer works - the formula that is in there still does want it needs to do, e.g. if I change the inputs in one of the worksheets the outputs do change. But when I re-calculate it stops.

    Interestingly, when I replace the array name for worksheets with a hardcoded value e.g."Worksheet 1" everything works again.

    So the error seems to be in the worksheet array, as if Excel is not happy with a column here as opposed to a single value. But it has worked before, so this should be possible

    Very curious to your feedback and many thanks in advance

    Cheers,
    Frank
    Attached Files Attached Files
    Last edited by FrankieG; 06-14-2021 at 03:27 AM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Formula (INDIRECT & Array) suddenly stopped working

    INDIRECT can not refer to a closing workbook.
    May be try to open the sourcing workbook?
    Quang PT

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Formula (INDIRECT & Array) suddenly stopped working

    Please post a file: see yellow banner at top of page,

  4. #4
    Registered User
    Join Date
    06-13-2021
    Location
    Amsterdam
    MS-Off Ver
    365
    Posts
    6

    Re: Formula (INDIRECT & Array) suddenly stopped working

    Dear team,

    I just uploaded an example (book 3). Hope this provides some background! Many thanks again.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Formula (INDIRECT & Array) suddenly stopped working

    If you just want to list a single row

    in C8

    =INDIRECT("'" & $C2 &"'!" & CELL("address",B$2))

    copy across and down

    To SUM over worksheets

    =SUM(Sheet1:Sheet3!B2)

  6. #6
    Registered User
    Join Date
    06-13-2021
    Location
    Amsterdam
    MS-Off Ver
    365
    Posts
    6

    Re: Formula (INDIRECT & Array) suddenly stopped working

    Many thanks John, very helpful.

    Would it be possible to have a similar construct using an array within the INDIRECT formulae limitations? Given that I will be working with very large datasets we are always advised (forced) to use arrays to minimize errors.

    For instance replacing the C2 cell with a formula-like construct e.g. "C" & SEQUENCE(30,1,1,1) - although the latter is an array so it wouldn't work

    Regards

  7. #7
    Registered User
    Join Date
    06-13-2021
    Location
    Amsterdam
    MS-Off Ver
    365
    Posts
    6

    Re: Formula (INDIRECT & Array) suddenly stopped working

    I have now found the following formula that may work: =CONCATENATE("'["&Workbook&"]"&Worksheet&"'!Income")

    This one works with arrays, but produces text (inherent to concatenate) rather than working formalae.

    Is there a way to translate text produced by CONCATENATE to working formulas?

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Formula (INDIRECT & Array) suddenly stopped working

    I don't full understand what the ultimate aim (outcome) is. Working with INDIRECT and arrays is very heavy on resource.

    Please post a file showing input (several sheets as your earlier file) and an OUTPUT (Results) sheet.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Formula (INDIRECT & Array) suddenly stopped working

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new here, I shall provide the link for you today: https://www.mrexcel.com/board/thread...rking.1173700/.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Page breaks suddenly stopped working.
    By SarahAA in forum Excel General
    Replies: 2
    Last Post: 02-16-2017, 03:06 PM
  2. [SOLVED] Array formula suddenly stopped working
    By stock11r in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-09-2016, 06:13 PM
  3. [SOLVED] Formula Suddenly Stopped Working?
    By nesbensen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-26-2015, 02:28 PM
  4. Macro suddenly stopped working - not sure what has happened.
    By Blazingworm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-24-2014, 04:56 PM
  5. Replies: 3
    Last Post: 05-03-2013, 02:05 PM
  6. Code suddenly stopped working
    By bibleguy125 in forum Excel General
    Replies: 1
    Last Post: 02-15-2012, 01:00 PM
  7. Beforeclose sub suddenly stopped working
    By cuewoz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-04-2010, 12:29 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