Excel - Combine multiple columns into one column

后端 未结 5 2011
忘了有多久
忘了有多久 2020-11-28 08:13

I have multiple lists that are in separate columns in excel. What I need to do is combine these columns of data into one big column. I do not care if there are duplicate ent

5条回答
  •  萌比男神i
    2020-11-28 08:49

    Function Concat(myRange As Range, Optional myDelimiter As String) As String 
      Dim r As Range 
      Application.Volatile 
      For Each r In myRange 
        If Len(r.Text) Then 
          Concat = Concat & IIf(Concat <> "", myDelimiter, "") & r.Text 
        End If 
      Next 
    End Function
    

提交回复
热议问题