+ Reply to Thread
Results 1 to 3 of 3

Help in Concatenating two cells

  1. #1
    Registered User
    Join Date
    05-20-2014
    Posts
    20

    Help in Concatenating two cells

    Dears,
    I want to add country code from cell A1 in front of each area number in Cell B1( the numbers in Cell B1 are separated by a comma).
    This needs to be done to a large number of data thus want a formula for it. thanks
    country code.xlsx

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Help in Concatenating two cells

    Use

    =A2&SUBSTITUTE(B2,", ",", "&A2)

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Help in Concatenating two cells

    In C2, try:

    =SUBSTITUTE(SUBSTITUTE(LEFT(" "&TRIM(B2),LEN(TRIM(B2)))," ",A2),",",", ")

    and copy down.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Concatenating two columns and reversing after concatenating the result
    By irfanparbatani in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-22-2014, 09:35 PM
  2. Concatenating more than 255 cells
    By daniel_gudman in forum Excel General
    Replies: 0
    Last Post: 01-11-2011, 05:04 PM
  3. Concatenating Cells
    By jbenet in forum Excel General
    Replies: 5
    Last Post: 12-10-2005, 05:55 AM
  4. concatenating cells with their formats
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 10:05 AM
  5. [SOLVED] concatenating cells with their formats
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 07:05 AM
  6. concatenating cells with their formats
    By GDC in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. concatenating cells with their formats
    By GDC in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM

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