How to perform iteration over excel/google sheets cells to get pairwise combinations?
\"string1\" \"string2\" \"string3\" ... \"string10\"
=QUERY(ARRAYFORMULA(SPLIT( TRANSPOSE(SPLIT(REPT(CONCATENATE(A2:A&CHAR(9)), COUNTA(A2:A)), CHAR(9)))& " "& TRANSPOSE(SPLIT(CONCATENATE(REPT(A2:A&CHAR(9), COUNTA(A2:A))), CHAR(9))), " ")), "where Col1<>Col2 order by Col1", 0)