+ Reply to Thread
Results 1 to 5 of 5

concatenate 2 column

  1. #1
    Forum Contributor
    Join Date
    01-17-2008
    Posts
    156

    concatenate 2 column

    Hi,

    i trying to merge column A1 (ABC) with column B1(XYZ), B2(LOL), B3(ROF) ..etc

    with a simple =CONCATENATE(A1,"-",B1) , i can get "ABC-XYZ" , but when come to column B2 , i only can get "-LOL" , any solution ?
    Attached Files Attached Files
    Last edited by okl; 02-02-2010 at 10:23 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: concatenate 2 column

    Using formulae is not that straightforward given variable number of terms between groups, however...

    If we insert a new Row 1 such that A1 becomes A2 and row 1 is blank then you could do something like:

    Please Login or Register  to view this content.

    the above assumes that the two groups of "BBC" are be to concatenated separately - hence use of ROW to differentiate.
    Last edited by DonkeyOte; 02-02-2010 at 08:41 AM. Reason: error in E2 REPLACE

  3. #3
    Forum Contributor
    Join Date
    01-17-2008
    Posts
    156

    Re: concatenate 2 column

    this is what i got:

    HTML Code: 
    but trying to get as below instead:

    HTML Code: 
    Last edited by okl; 02-02-2010 at 10:11 AM.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: concatenate 2 column

    Right, in which case things are far simpler.

    Ignore the Row 1 point from before - that can be deleted - simply use:

    E1: =LOOKUP(REPT("Z",255),$A$1:$A1)&"-"&$B1
    copied down

  5. #5
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: concatenate 2 column

    If you don't have hyphens in your actual column A data, then this is straightforward - see attached.
    Attached Files Attached Files
    Remember what the dormouse said
    Feed your head

+ 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