+ Reply to Thread
Results 1 to 1 of 1

Help with re-working macro code to 'throw out' duplicate values.

  1. #1
    Registered User
    Join Date
    08-15-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    17

    Question Help with re-working macro code to 'throw out' duplicate values.

    The following Macro will use column A as a key and merge subsequent rows into one row on a new sheet:

    Key Data1 Data2 Data3
    1 Red Blue Green
    1 31 32 33

    Becomes:

    Key Data1 Data2 Data3
    1 Red,31 Blue,32 Green,33

    However, if all Key 1 rows have the same info in Data1:

    Key Data1 Data2 Data3
    1 Red Blue Green
    1 Red 32 33

    It becomes:

    Key Data1 Data2 Data3
    1 Red,Red Blue,32 Green,33

    What I'd like is to only 'copy' one instance of a duplicate value in each column and end up with:

    Key Data1 Data2 Data3
    1 Red Blue,32 Green,33

    Okay I solved that, now I can't figure out why it copies '######' into the new sheet now and doesn't seem to work on large files...

    I solved the '######' problem, but it still crashes on a large file 500k records...


    Please Login or Register  to view this content.
    Last edited by pwyller; 11-14-2012 at 06:05 PM. Reason: Updated info

+ 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