Hi everyone,
I have 3 testing files as shown in the screenshot above. I want to import the data from these 3 files into a master google sheet. This is the formula that I'm using:
=TRANSPOSE(QUERY(TRANSPOSE({IMPORTRANGE(NameList!B3,"Sheet1!B26:L29");IMPORTRANGE(NameList!B4,"Sheet1!B26:L29");IMPORTRANGE(NameList!B5,"Sheet1!B26:L29")}),"where Col1 is not null"))
The outcome output of this formula is:

It works perfectly fine when all the data are filled in 3 source files. However, if the first file (testing) is empty, then the output will be #N/A in cell B5 in the master google sheet. May I know how to avoid this situation where the data only come out when the first file is filled with data? I want the formula able to skip the first file if it is empty and continue for the 2nd and the 2rd file.
Any advise will be greatly appreciated!



