google spreadsheet: join arrays using function NOT CODE

后端 未结 7 1331
我寻月下人不归
我寻月下人不归 2021-02-05 03:52

I have one array

1 
2
3

another array

4
5
6

How do I use one function to join the 2 arrays?

         


        
7条回答
  •  情歌与酒
    2021-02-05 04:10

    I'm noticing this is an older question, so this might not have existed when previous responses were written.

    You're looking for the JOIN() formula.

    (Documentation link)

    Sample Usage

    JOIN(" and-a ",{1,2,"1 2 3 4"})
    
    JOIN(",",{1,2,3},{4;5;6})
    
    JOIN("-",A1:A100)
    

    Syntax

    JOIN(delimiter, value_or_array1, [value_or_array2, ...])
    

    delimiter - The character or string to place between each concatenated value.

    delimiter may be specified as blank, e.g. JOIN(,{1,2,3}). value_or_array1 - The value or values to be appended using delimiter.

    value_or_array2, ... - [ OPTIONAL ] - Additional value or array to be appended using delimiter.

提交回复
热议问题