+ Reply to Thread
Results 1 to 3 of 3

Concatenating problem

  1. #1
    Registered User
    Join Date
    09-09-2011
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    52

    Concatenating problem

    Hello,

    I'm wondering if it is possible to concatenate values from different records. For instance, if I have a table that looks like this:

    (first column is a customerNumber, second column is the orderNumber)
    01 22
    02 35
    02 36
    02 39
    03 45
    03 52

    And I want a table that concatenates the OrderNumber values for each customer like this:

    (first column is a customerNumber, second column is a concatenated orderNumber field)
    01 22
    02 35, 36, 39
    03 45, 52

    Is there an Excel function for something like this? Would I need to write my own function?

    Thank you.

  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 problem

    Comparative String Concatenation is not a builtin function in Excel. See here:

    ConcatIf
    http://www.excelforum.com/excel-prog...in-cell.html#2 'explanation
    http://www.excelforum.com/attachment...if-example.xls 'sample
    http://www.excelforum.com/attachment...tif-sample.xls 'sample

    If you do a search on this forum for "string concatenation" or "concatif" you'll get lots more example threads.
    _________________
    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
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Concatenating problem

    Other alternative forum search keywords:

    Morefunc
    Aconcat
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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