+ Reply to Thread
Results 1 to 11 of 11

vba to concatenate data and return multiples values from unique list

  1. #1
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    vba to concatenate data and return multiples values from unique list

    Hi all

    I have a database of 75000 rows actually and it continues to expand daily.

    Some products have different statistics code and description.

    On the right are unique items with compilation of different statistics code and description in one cell as per database .

    The item no is unique that needs to taken in account for unique list

    looking a vba code to speed up process in one cell as per attached



    Thanks if anyone can assist
    Attached Files Attached Files

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: vba to concatenate data and return multiples values from unique list

    It is unclear if you want to remove dups in columns A & B or use column H to make unique columns A & B.

  3. #3
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: vba to concatenate data and return multiples values from unique list

    Quote Originally Posted by Kenneth Hobson View Post
    It is unclear if you want to remove dups in columns A & B or use column H to make unique columns A & B.
    Yes to remove dups in A and B but the column A to D should remain as it is , because it the database so there are unique in columns F and G .

    However at column H there are unique of column C and D which are concatenated and give a summary details.

    My goal is have unique list column A & B at column F& G.
    then for column H unique for C and D concatenated
    Attached Images Attached Images

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: vba to concatenate data and return multiples values from unique list

    I think this will do what you want it to, you may need to adjust outputRange to suit.
    I should note that 75,000 of anything won't be fast.

    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  5. #5
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: vba to concatenate data and return multiples values from unique list

    Hi Mike

    We are on the right track,but need a little tuning

    See as per attached sheet 2 for more explicit explanation

    Actually for reference 0055767 the tariff description is merging all

    should read as below as unique

    0055767 .B / POIGNEE CLASSQ VERNI HETRE E128 L170 83024100 BASE METAL FITTINGS,83024100 BASED METAL MOUNTINGS

    See attached sample sheet for ease

    It there were trailing spaces it would have taken it but there are no trailing spaces as it should be unique.

    thanks if you could adjust code as unique for header tariff description for column H
    Attached Files Attached Files

  6. #6
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: vba to concatenate data and return multiples values from unique list

    Change this bit, adding the test

    Please Login or Register  to view this content.

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: vba to concatenate data and return multiples values from unique list

    Here's how I read your problem
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: vba to concatenate data and return multiples values from unique list

    I am bit confused

    should I changed as below,otherwise kindly show me amended complete coding.

    Trying but getting compile error



    Please Login or Register  to view this content.
    TO read this

    Please Login or Register  to view this content.

  9. #9
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: vba to concatenate data and return multiples values from unique list

    Try this
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: vba to concatenate data and return multiples values from unique list

    Jindon &Mikericson

    Thank you for both solution it takes a bit of time but at least it is done correctly and this saves a lot of time than doing this manually

  11. #11
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: vba to concatenate data and return multiples values from unique list

    Jindon &Mikericson

    Thank you for both solution it takes a bit of time but at least it is done correctly and this saves a lot of time than doing this manually

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Data Validation List - Formula to Sort and Return Unique Values in List
    By beewketu in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2015, 04:18 PM
  2. return unique values from a list
    By ammartino44 in forum Excel General
    Replies: 5
    Last Post: 07-26-2015, 10:50 AM
  3. [SOLVED] List multiples values that each correlate with a unique value.
    By marinemonk in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-25-2013, 01:44 PM
  4. Convert list of unique values into multiples quickly
    By lukiebabie in forum Excel General
    Replies: 4
    Last Post: 05-04-2012, 10:57 AM
  5. Need to display Unique Values in a list and return them
    By citibond in forum Excel General
    Replies: 4
    Last Post: 04-26-2012, 12:34 AM
  6. Search multiples and return unique value
    By pleiadeez7 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2011, 09:59 AM
  7. Excel 2007 : Return Unique values in Drop Down List
    By rvc81 in forum Excel General
    Replies: 2
    Last Post: 07-14-2010, 08:57 PM

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