+ Reply to Thread
Results 1 to 7 of 7

Combining Text Strings

  1. #1
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    207

    Combining Text Strings

    Here is what I would like to do
    Company Type of Work Desired Output
    XYZ Electrical XYZ - (Electrical)
    ABC Plumbing ABC - (Plumbing)


    Any idea how to do this?

  2. #2
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    207

    Re: Combining Text Strings

    Here is the spreadsheet
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-26-2012
    Location
    Nairobi
    MS-Off Ver
    Excel 2003-2010
    Posts
    7

    Re: Combining Text Strings

    just put XYZ in cell A2, in B2 put SPACE and put Electrical in cell C2. In cell D2 put the following formula =A2&B2&C2.
    Last edited by jeffreybrown; 12-28-2012 at 04:12 PM. Reason: Removed non Excel link.

  4. #4
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Combining Text Strings

    =trim(a2&" - ("&b2&")")
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  5. #5
    Registered User
    Join Date
    12-26-2012
    Location
    Nairobi
    MS-Off Ver
    Excel 2003-2010
    Posts
    7

    Re: Combining Text Strings

    Have attached my solution, please find and comment.
    Attached Files Attached Files
    Last edited by jeffreybrown; 12-28-2012 at 04:13 PM. Reason: Removed non Excel link.

  6. #6
    Registered User
    Join Date
    05-23-2012
    Location
    Central Valley, CA
    MS-Off Ver
    Office 2010
    Posts
    14

    Re: Combining Text Strings

    Try this, it doesn't require the space columns

    =concatenate(a2, ," ", "- (", b2,")")

    Combining Strings problem - No Spacing.xls
    Last edited by AlanF51MS; 12-28-2012 at 04:50 PM. Reason: Uploaded wrong Spreadsheet

  7. #7
    Registered User
    Join Date
    12-26-2012
    Location
    Nairobi
    MS-Off Ver
    Excel 2003-2010
    Posts
    7

    Re: Combining Text Strings

    Hey here is a simpler one, Works fine too =TRIM(A2&" - ("&B2&")")

+ 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