+ Reply to Thread
Results 1 to 4 of 4

Concatenating

  1. #1
    Registered User
    Join Date
    03-19-2006
    Posts
    6

    Arrow Concatenating

    I have a sheet with values

    ColumnA ColumnB ColumnC
    0201533 J000006311 MATERIAL-WELLHEAD & XMAS TREE
    0201533 J000006311 TECHNICAL PROPOSAL
    0201533 J000006312 BPO-001/04
    0201533 J000006312 MATERIAL-WELLHEAD & XMAS TREE
    0201533 J000006312 TECHNICAL PROPOSAL
    0201533 J000006313 BPO-056/03
    0201533 J000006313 SUPPLIER-CAMERON
    0201533 J000006313 MATERIAL-WELLHEAD
    0201533 J000006313 QUOTATION
    0201533 J000006314 JO/SC06/S00
    0201533 J000006314 BUILDING MAINTENANCE SERVICES

    I want values in Column C to be concatenated depending up the value in Column B

    0201533 J000006311 MATERIAL-WELLHEAD & XMAS TREE-TECHNICAL PROPOSAL
    0201533 J000006312 BPO-001/04-MATERIAL-WELLHEAD & XMAS TREE-TECHNICAL PROPOSAL
    0201533 J000006313 BPO-056/03-SUPPLIER-CAMERON-MATERIAL-WELLHEAD-QUOTATION
    0201533 J000006314 JO/SC06/S00-BUILDING MAINTENANCE SERVICES

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Concatenating

    Try this macro:
    Please Login or Register  to view this content.

    How/Where to install the macro:

    1. Open up your workbook
    2. Get into VB Editor (Press Alt+F11)
    3. Insert a new module (Insert > Module)
    4. Copy and Paste in your code (given above)
    5. Get out of VBA (Press Alt+Q)
    6. Save as a macro-enabled workbook

    The macro is installed and ready to use. Press Alt-F8 and select it from the macro list.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-19-2006
    Posts
    6

    Re: Concatenating

    JBeaucaire,

    After I run the macro, all the cells are blank...For your reference I have attached a sample excel file. Thanks for your time

    Sadath



    Quote Originally Posted by JBeaucaire View Post
    Try this macro:
    Please Login or Register  to view this content.

    How/Where to install the macro:

    1. Open up your workbook
    2. Get into VB Editor (Press Alt+F11)
    3. Insert a new module (Insert > Module)
    4. Copy and Paste in your code (given above)
    5. Get out of VBA (Press Alt+Q)
    6. Save as a macro-enabled workbook

    The macro is installed and ready to use. Press Alt-F8 and select it from the macro list.
    Attached Files Attached Files

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Concatenating

    worked fine for me
    here it is after being run
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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