Forum Discussion

Excel_Struggler's avatar
Excel_Struggler
Copper Contributor
Jul 19, 2024
Solved

Cross sheet functionality and maintenance of the chronological order of a formula

Hi community, I'm working on a formula that searches a range of cells and outputs it another range of cells where the criteria are based on matches on two dropdown menus which are dependent (Colum...
  • djclements's avatar
    djclements
    Jul 23, 2024

    Excel_Struggler The performance issue in this case is due to an array object (keyId) being passed to the lookup_array argument of XMATCH. If we spill the keyId results directly to a separate range in the worksheet, then reference the spill range in the lookup_array, it will drastically improve the calculation speed.

     

    In the attached revision, I've defined the FILLDOWN function in Name Manager, moved the keyId formula to cell I6, and simplified the final formula in cell F6. I tested it to 16,000 rows and the calculation lag was virtually unnoticeable on my system (milliseconds). Hopefully it will perform well enough that you can avoid splitting the data into multiple sheets.

     

    Cheers!

Resources