Aug 07 2022 07:04 AM
Interesting. I didn't know it would do that, but it is the correct answer to the problem as posed. You requested the formula should sort precisely 1,048,576 cells and it did. Older formulas allowed one to use entire columns and the calculation would get cut off when the boundary of the used range is reached, but that does not apply to array formulas.
I would recommend converting source data to Excel Tables and using the structured references to address the data. That way you will have one output for each place within the referenced column.
Aug 07 2022 10:45 AM
Aug 07 2022 02:57 PM
Thanks Patrick. I added some logic to figure out the max size of my sort.