+ Reply to Thread
Results 1 to 5 of 5

Multiple cell texts into one

Hybrid View

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Multiple cell texts into one

    Greetings,

    here's the request i have.There are 5 cells containing text like

    Cell1: ABC
    Cell2: DEF
    Cell3: G12
    Cell4: 345
    Cell5: 678

    What i want the new cell to show is : ABC.DEF.G12 and so on separating text from each cell with a dot (.)
    Thanks in advance.

  2. #2
    Forum Contributor
    Join Date
    06-23-2010
    Location
    Iowa, United States
    MS-Off Ver
    Excel 2007
    Posts
    145

    Re: Multiple cell texts into one

    Try this:

    =Cell1&"."&Cell2&"."&Cell3&"."&Cell4&"."&Cell5

    Let me know if that works for you.

    Steve

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Multiple cell texts into one

    Here is a UDF you can try...

    On the worksheet use >> =Concat()

    Function Concat()
        Dim RowCtr As Double
        Dim TempStr As String
        TempStr = ""
        'Change the 1 below to 5 for all your rows
        For RowCtr = 1 To 5
            TempStr = TempStr & Cells(RowCtr, "A") & "."
        Next RowCtr
        
        Concat = TempStr
    End Function
    HTH
    Regards, Jeff

  4. #4
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: Multiple cell texts into one

    Oneliner:
    Sub hsv()
      Range("F1") = Join(Application.Transpose(Range("A1").Resize(5).Value), ".")
    End Sub
    Kind regards, Harry.

  5. #5
    Registered User
    Join Date
    04-29-2012
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Multiple cell texts into one

    Hi, how bout this

    open up this pic,

    Untitled1.jpg

    then type in =CONCATENATE(A1;".";A2;".";A3;".";A4;".";A5)

    hope this help
    Last edited by Heartbreak_one; 05-31-2012 at 02:42 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1