Stacking multiple columns on to one?

后端 未结 8 1085
遥遥无期
遥遥无期 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:44

    Updated Answer

    I was right there is a much better solution. It's been posted below but I'm copying it here so it's in the top answer:

    =unique({A:A;B:B})
    

    Caveat: This will include one blank cell in certain scenarios (such as if there's one at the end of the first list).

    If you're not concerned with ordering and a tailing blank cell a simple sort() will clean things up:

    =sort(unique({A:A;B:B}))
    

    Otherwise a filter() can remove the blanks like so:

    =filter(unique({A:A;B:B}),NOT(ISBLANK(unique({A:A;B:B}))))
    

    The following is the old deprecated answer

    I'm confident that this is "The Wrong Way To Do It", as this seems such an absurdly simple and common task that I feel I must be missing something as it should not require such an overwrought solution.

    But this works:

    =UNIQUE(TRANSPOSE(SPLIT(JOIN(";",A:A,B:B),";")))
    

    If your data contains any ';' characters you'll naturally need to change the delimiter.

    0 讨论(0)
  • 2020-12-01 02:44

    You can use this:

    =unique({A1:A;B1:B})
    

    Works perfect here!

    0 讨论(0)
提交回复
热议问题