• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

CONCATENATE FORMULA

sdsurzh

Member
Hi,


Suppose I have data from A1:A14 as shown below

1

2

3

4

5

6

7

8

9

10

11

12

13

14


I want a formula to combine all the numbers to one like

1,2,3,4,5,6,7,8,9,10,11,12,13,14


Thanks,

Suresh Kumar S
 
Write yourself a UDF


Public Function Conc(rng As Range, Optional delim As String = ",")

Dim cell As Range

For Each cell In rng

Conc = Conc & cell.Value & delim

Next cell

Conc = Left(Conc, Len(Conc) - 1)

End Function`
 
Back
Top