I originally posted because I couldn't work out why I was getting Array Literal Error when I have same amount of columns in each formula. However, I worked out what throws it off but not how to resolve it.
I am trying to import two ranges from the same source sheet to one destination sheet to create a database. There are instances where there is more than one name (1st player and 2nd player) on the same row in source sheet, which is why it has been complicated. The formula is:
={QUERY(IMPORTRANGE("Source sheet URL", "Form responses 8!C:AH"), "Select Col5, Col6, Col9, Col1, Col17, Col19, Col20, Col21, Col22, Col16, Col29, Col30 Where Col2 is null and Col5 is not null", 0);QUERY(IMPORTRANGE("Source sheet URL", "Form responses 8!C:AH"), "Select Col11, Col12, Col15, Col, Col17, Col19, Col20, Col21, Col22, Col16, Col31, Col32 Where Col2 is null and Col11 is not null", 0)}
I am trying to get a list of names and player details (a database) from a form responses sheet - one that will keep automatically updating when new responses come in.
Col5 is where player 1's data begins and Col11 is where player 2's data begins. They are siblings so they will share some columns.
It was working fine until I deleted my test player 2's that I entered because there were none in real life so far. I realised that's when I got Array Literal error. So do I need an instance in the formula for when there is a player 1 but no player 2? Do I need to add a third Importrange?
I tried:
=ARRAYFORMULA(IFERROR(QUERY({IFERROR( IMPORTRANGE("1datePnWQU7814T7XhFL0_LHzn479_kzcgZAdCJiSDsI", "Form responses 8!C:AH"), "Select Col5, Col6, Col9, Col1, Col17, Col19, Col20, Col21, Col22, Col16, Col29, Col30 Where Col2 is null and Col5 is not null", 0);IFERROR(IMPORTRANGE("1datePnWQU7814T7XhFL0_LHzn479_kzcgZAdCJiSDsI", "Form responses 8!C:AH"), "Select Col11, Col12, Col15, Col1, Col17, Col19, Col20, Col21, Col22, Col16, Col31, Col32 Where Col2 is null and Col11 is not null", 0)}
because I was told it is the same as another question but I am now getting #N/A. Not sure if I'm getting it right at all.