+ Reply to Thread
Results 1 to 6 of 6

Automate concatenation between single cell and multiple target cells

  1. #1
    Registered User
    Join Date
    06-15-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    4

    Automate concatenation between single cell and multiple target cells

    I'm trying to find out a way I can concatenate a single cell with individual target cells. I can manually do this but is there a neat way of performing the task so I concatenate each cell from the target column into a new cell each containing the source cell and target cell strings.

    For example:
    CELL A1 =CONCATENATE(C1," ",D1)
    CELL A2 =CONCATENATE(C1," ",D2)
    CELL A3 =CONCATENATE(C1," ",D3)
    and so on...
    Then
    CELL A50 =CONCATENATE(C2," ",D1)
    CELL A50 =CONCATENATE(C2," ",D2)
    CELL A50 =CONCATENATE(C2," ",D3)
    and so on...

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Automate concatenation between single cell and multiple target cells

    Hi,

    =CONCATENATE(INDIRECT("C"&ROUNDUP(ROW()/49,0))," ",D1)

    Regards

    Edit:

    =CONCATENATE(INDIRECT("C"&ROUNDUP(ROW()/49,0))," ",INDIRECT("D"&IF(MOD(ROW(),49)=0,49,MOD(ROW(),49))))
    Last edited by XOR LX; 06-15-2013 at 01:18 PM. Reason: Can't do anything right today!
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    06-15-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Automate concatenation between single cell and multiple target cells

    wow fast and perfect!

    I started working on the first example and was happy with that tweaking the target back to cell 1, then the update made me smile. I am automated!!

    Thank you.

  4. #4
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Automate concatenation between single cell and multiple target cells

    at A1 try this
    =CONCATENATE(INDEX(C:C,TRUNC((ROW(A1)-1)/50)+1)," ",INDEX(D:$D,MOD(ROW(A1)-1,50)+1))

    copy down

  5. #5
    Registered User
    Join Date
    06-15-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Automate concatenation between single cell and multiple target cells

    I'm spoilt for choice now.

    Thanks for your help XOR LX and Ghozi Alkatiri

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Automate concatenation between single cell and multiple target cells

    You're welcome.

+ 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