Forum Discussion

MrHarryWong's avatar
MrHarryWong
Copper Contributor
Aug 01, 2025

Dynamic arrays across workbooks

Hello everyone, I’m new to dynamic arrays and I find them incredibly powerful!

I noticed a note saying that dynamic arrays are only supported when both workbooks are open.

However, I’ve found that the data still appears even when the source workbook is closed. For example, I have dynamic arrays in Workbook A, and I use an XLOOKUP in Workbook B to retrieve data from A. When Workbook A is closed, nothing seems to break.

So, in what situations are dynamic arrays not supported across workbooks?

Thank you very much!

1 Reply

  • NikolinoDE's avatar
    NikolinoDE
    Platinum Contributor

    Dynamic arrays are indeed powerful, but their behavior across workbooks does have some important limitations, even though they may appear to work fine in many situations.

    Scenario                                                                                            Works When Source Workbook is Closed?

    Regular functions like XLOOKUP, INDEX, etc. referencing ranges                                          Yes

    Referencing a cell with a spilled dynamic array (e.g., =A2#)                                                  No

    Referencing named ranges that are defined by dynamic arrays                                            No

    Copy-pasted values from a spilled array                                                     Yes (but not dynamic anymore)

     

    If you need dynamic arrays across workbooks and the source may be closed, consider:

    • Converting the source data into named ranges or tables and referencing those with traditional formulas.
    • Or, copying the dynamic array output as static values periodically via Power Query, VBA, or manual update.

    Hope this helps :-)

Resources