How to create all possible pair combinations without duplicates in Google Sheets?

后端 未结 4 1990
臣服心动
臣服心动 2020-12-04 03:21

How to perform iteration over excel/google sheets cells to get pairwise combinations?

\"string1\"

\"string2\"
\"string3\"
...
\"string10\"

4条回答
  •  情书的邮戳
    2020-12-04 03:56

    =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)
    

提交回复
热议问题