I have a spreadsheet where I need to join the data of the sheets that exist/ For example my spreadsheet might contain January and March only Or sometimes February and December only Or it can contain all the monthly sheets. Hence the monthly sheets are created and deleted by me.
I am pooling the monthly tab sheets to a single sheet called transactions sheet
=QUERY({January!A:I; February!A:I; March!A:I; April!A:I; May!A:I; June!A:I; July!A:I; August!A:I; September!A:I; October!A:I; November!A:I; December!A:I}, "select * where Col2 <>''")
I currently have January and April sheets but the above formula gives an error since the remaining sheets are absent.
How do I solve this issue to always include the results of whatever monthly sheets are present?