+ Reply to Thread
Results 1 to 4 of 4

Extract unique data and concatenate

  1. #1
    Registered User
    Join Date
    03-10-2009
    Location
    AC
    MS-Off Ver
    Excel 2003, 2007
    Posts
    16

    Extract unique data and concatenate

    Hi guys

    I have these Sheets1-3 with different item name ,and sheet4 = "ALL ITEM"

    We populate the data(daily/weekly) in Sheet 1-2-3, there are the same Item codes with different Item Description. Sometimes with random input--not sorted.

    1 . In sheet 4 - ALL ITEM, we extract(manually) from Sheet1-2-3 the single/unique item code with its item description(s) concatenated in a single cell, as we input new data at the end of the day or week in Sheets 1-2-3..
    is there a way or possibility with an excel formula to automatically update Sheet 4-(extract unique code+concatenate all its item desc in single cell)
    - And what if the source data from another workbook?
    Need help.


    With the contribution of the genius in this forum, I used the UDF suggested before to concatenate a single or huge data in a colum.

    =Conc(C2:C4,",") - separated by comma.
    --
    Option Explicit

    Function Conc(rng As Range, Optional Separator As String = "")
    Dim Cell As Range

    For Each Cell In rng
    If Cell <> "" Then
    Conc = Conc & Separator & Cell
    End If
    Next
    If Separator <> "" Then
    Conc = Right(Conc, Len(Conc) - Len(Separator))
    End If
    End Function
    --

    I hope my explanation makes sense, I have attached the sample data.
    Cheers, Many thanks dear experts!

    D
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Extract unique data and concatenate

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    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.

  3. #3
    Registered User
    Join Date
    03-10-2009
    Location
    AC
    MS-Off Ver
    Excel 2003, 2007
    Posts
    16

    Re: Extract unique data and concatenate

    Ok..sorry for the wrong embed of codes NBVC..here it is.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-10-2009
    Location
    AC
    MS-Off Ver
    Excel 2003, 2007
    Posts
    16

    Re: Extract unique data and concatenate

    UDF works well, I just need when updating all in one sheet.


    I can do Advance Filter - Unique Records for Column B- Item Codes and concatenate using UDF
    but it takes a bit of time..

    Thanks in advance for the help guys.

    D

+ 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