I am using this formula to merge multiple sheets (about 100, but for simplicity just stick with 3 sheets: Sheet1, Sheet2 and Sheet3), in which I do not know how many non-empty rows I have (also, they increase dinamically).
={FILTER(Sheet1!A2:L;LEN(Sheet1!A2:A));FILTER(Sheet2!A2:L;LEN(Sheet2!A2:A));FILTER(Sheet3!A2:L;LEN(Sheet3!A2:A))}
The formula works well if all the sheets have at least one row filled with values. However, the problems is that if, for example, Sheet2 is empty, the formula gets me an error:
In ARRAY_LITERAL, an Array Literal was missing values for one or more rows
How can I fix this error?