+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Search and concatenate

  1. #1
    Registered User
    Join Date
    02-10-2010
    Location
    Brisbane
    MS-Off Ver
    Excel 2007
    Posts
    8

    Smile Search and concatenate

    Hi,

    I am looking for help with some formulas as I am new to Excel 2007, I am wonderning if someone can help me.

    I have 2 worksheets:

    1. Product; and
    2. Buyers.

    1. In the Products worksheet, every column has data about the books' description like:

    A | B | C | D | E
    Serial | Desc. | Author | Pubd. | year


    Column A contains serial no. of the books, ordered from 1,2,3,4,5,6,7 to .....so on...

    Columns B,C,D and E, have other details of the books.

    2. In the Buyers worksheet, there are two columns;

    A | B
    Serial | Buyer Info

    For Ex.
    1 | Harry - Newcastle
    1 | Peter - Sydney
    1 | Anne - Sydney
    2 | Bryon - Sydney
    3 | Vickey - Perth
    3 | hamish - Perth
    4 | Amish - Brisbane
    4 | Nicole - Darwin
    4 | Steve - Los Angeles
    5 | Ali - Melbourne
    6 | Harry - Newcastle
    6 | Peter - Sydney
    6 | Anne - Sydney
    6 | Brad - Adelaide
    6 | Bryon - Sydney
    7 | Vickey - Perth
    8 | hamish - Perth
    8 | Amish - Brisbane
    9 | Nicole - Darwin
    9 | Steve - Los Angeles
    and so on..........

    These are the details people who bought the particular book order by the serial no. of the book purchased.

    OBJECTIVE

    I want to make a new column in the first worksheet i.e. Product, say F, which I want to read all the buyers' info of that purchase the book with that serial no. and concatenate them together in the same cell separated by a comma.

    Example considering the above examples:

    A | B | C | D | E | F
    Serial | Desc. | Author | Pubd. | year | Buyer Info


    1 | Accounting | Ramsay | ABC Pub. | 2008 | (Harry - Newcastle, Peter - Sydney, Anne - Sydney)

    2 | Physics | Peter R. | ABC Pub. | 2007 | (Brad - Adelaide, Bryon - Sydney)

    3 | Chemistry | Chopra D. | Nimbus | 2002 | (Vickey - Perth, hamish - Perth)

    4 | Maths | Sharma R. | Willey | 2007 | (Amish - Brisbane, Nicole - Darwin, Steve - Los Angeles)

    5 | Computers | Behl P. | PBI | 2010 | (Ali - Melbourne)

    6 | Science | Aman D. | INC | 2008 | ( Harry - Newcastle, Peter - Sydney ,Anne - Sydney, Brad - Adelaide, Bryon - Sydney)

    7 | History | Pande P. | ABC | 2010 | (Vickey - Perth)

    8 | Social S. | Smith J. | Nimbus | 2009 | (hamish - Perth, Amish - Brisbane)

    9 | Astronomy | Jain P. | PBI | 2009 | ( Nicole - Darwin, Steve - Los Angeles)


    The above is what I am trying to do but keep failing...

    Any help shall be highly appreciated.

    Looking forward to all the sugestions.

    Thanks a lot in advance for your time.

    Praney

    Added sample workbook
    Attached Files Attached Files
    Last edited by praneybehl; 02-11-2010 at 03:09 AM. Reason: Solved Thanks to JBeaucaire

  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: Search and concatenate

    Hi Praney. Welcome to the forum.

    This is doable, but will most likely involve adding some VBA to your workbook. You OK with us using macros to solve this? This isn't the programming forum, so I thought I should ask before spending any time on it.

    If so, click GO ADVANCED and use the paperclip icon to post up your workbook. Make sure the sample workbook has a few sample "results" so we can clearly see your goal.

    Also, is this a one-off need? Or do you need something that is operating all the time in real-time to keep these concatenated fields filled in?
    _________________
    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
    02-10-2010
    Location
    Brisbane
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Search and concatenate

    Quote Originally Posted by JBeaucaire View Post
    Hi Praney. Welcome to the forum.

    This is doable, but will most likely involve adding some VBA to your workbook. You OK with us using macros to solve this? This isn't the programming forum, so I thought I should ask before spending any time on it.

    If so, click GO ADVANCED and use the paperclip icon to post up your workbook. Make sure the sample workbook has a few sample "results" so we can clearly see your goal.

    Also, is this a one-off need? Or do you need something that is operating all the time in real-time to keep these concatenated fields filled in?
    HI JBeaucaire,

    Thanks a lot for the suggestion I'll do it and its a one-off need.

    Regards,
    Praney

  4. #4
    Registered User
    Join Date
    02-10-2010
    Location
    Brisbane
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Search and concatenate

    Quote Originally Posted by JBeaucaire View Post
    Hi Praney. Welcome to the forum.

    This is doable, but will most likely involve adding some VBA to your workbook. You OK with us using macros to solve this? This isn't the programming forum, so I thought I should ask before spending any time on it.

    If so, click GO ADVANCED and use the paperclip icon to post up your workbook. Make sure the sample workbook has a few sample "results" so we can clearly see your goal.

    Also, is this a one-off need? Or do you need something that is operating all the time in real-time to keep these concatenated fields filled in?
    Sorry didn't your whole message,
    I am not familiar with macros I am a newby.
    I think I'll take it to the programming section.

    Well thanks a lot for your help though.

    Cheers,

    Praney

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

    Re: Search and concatenate

    No, we can solve it here, don't start another thread.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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