There is a 53 million element limit on a single dynamic array established from community testing. I found no formal documentation for it. It is specifically 53,687,091 elements (0x3333333 in hex), and in my tests it does fail with "ran out of resources while attempting to calculate". (Heads-up this limit seems to be for Excel desktop)
However, I tried a different test at 100 million elements, and it works perfectly fine. I have no explanation for the difference.
Test A: works at 100,000,000 elements
=SUM(SEQUENCE(,10000)*SEQUENCE(10000))
Test B: works at 53,684,929 elements
=SUM(IF(SEQUENCE(,7327),SEQUENCE(7327)))
Test C: fails at 53,692,256 elements
=SUM(IF(SEQUENCE(,7328),SEQUENCE(7327)))
Adding a single extra element to the IF test is enough to make it fail, so the boundary is exact.
So,
- Is this a well-known limitation?
- Maybe the 53M limit is only bound to IF?
- Is it documented anywhere, by Microsoft or anyone else?
- Why would IF hit it while multiplication handles 100 million?