Stacking multiple columns on to one?

后端 未结 8 1235
遥遥无期
遥遥无期 2020-12-01 02:13

I am using Google SpreadSheet, and I\'m trying to have multiple sheets containg a list of words. On the final sheet, I would like to create a summative list, which is a comb

8条回答
  •  醉话见心
    2020-12-01 02:38

    The basic way, is just to do it as arrays like so

    ={A1:A10;B1:B10...etc}
    

    The problem with this method, as I found out is that its very time consuming if you have lots of columns. I've done some searching around and have come across this article:

    Joining Multiple Columns Into One Sorted Column in Google Spreadsheets

    The core formula is

    =transpose(split(arrayformula(concatenate(if(len(A:Z)>0,A:Z&";",""))),";"))
    

    Obviously you'd replace the A:Z to whatever range you want to use. And if you want to do some sorting or removing duplicates, you'd simply wrap the the above formula in a SORT() and/or UNIQUE() method, like so..

    =sort(unique(transpose(split(arrayformula(concatenate(if(len(A:Z)>0,A:Z&";",""))),";"))))
    

    Hope this helps. Happy coding everyone :)

提交回复
热议问题