+ Reply to Thread
Results 1 to 10 of 10

Macro --- Combine Duplicates --- Delete Row --- Update Column

  1. #1
    Forum Contributor
    Join Date
    10-04-2014
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    161

    Macro --- Combine Duplicates --- Delete Row --- Update Column

    I have attached an example.
    -----------------------------------

    1. Looking for a Macro that will find duplicates based upon column C D &E
    2. Combine the Duplicates to one line and delete the other rows
    3. During the consolidation process IF Column A contains the word "Upd" the resulting Column A is Renamed as Upd ELSE it remains "ADD"

    Thanks so much in advance!!!!!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: Macro --- Combine Duplicates --- Delete Row --- Update Column

    Answered my own question by looking at the after bit...Ooops!
    Last edited by ARowbot; 04-29-2015 at 05:42 PM. Reason: Answered my own question.
    !If all your troubles are solved, then so is the thread. Show this by marking it so using thread tools at the top of the page.
    If I helped do this, then please show your appreciation by awarding rep points.
    <------ Button for that is over there

  3. #3
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: Macro --- Combine Duplicates --- Delete Row --- Update Column

    Try this:

    Please Login or Register  to view this content.

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

    Re: Macro --- Combine Duplicates --- Delete Row --- Update Column

    Try
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    10-04-2014
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    161

    Re: Macro --- Combine Duplicates --- Delete Row --- Update Column

    I just tested it...... ARowbot this looks AWSOME my friend!!!! The only thing I see off is the first line of the results. It should be...

    ------------------------------------------------------------------------------
    Upd DATA 2251 102828-2208D 5 2015 4 KG 3672 0 0
    ------------------------------------------------------------------------------

    But its not applying the code to the first set...

    Upd DATA 2251 102828-2208D 5 2015 4 KG 1836 0 0
    Add DATA 2251 102864-2208D 5 2015 4 KG 1836 0 0

  6. #6
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: Macro --- Combine Duplicates --- Delete Row --- Update Column

    You're very welcome...I noticed this...And this is because Column D is not identical. You asked for duplicates on all 3 columns...

  7. #7
    Forum Contributor
    Join Date
    10-04-2014
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    161

    Re: Macro --- Combine Duplicates --- Delete Row --- Update Column

    You are indeed correct that was my mistake. I have one final question then...

    I have attached another sheet with an additional tab with my actual data. it runs fine on the "Example Tab" but on my "Actual Tab" I get a type mismatch error.

    I changed the lr = Sheets("Actual") ???
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    10-04-2014
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    161

    Re: Macro --- Combine Duplicates --- Delete Row --- Update Column

    If I step through it. It runs for a few lines then errors out.

  9. #9
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: Macro --- Combine Duplicates --- Delete Row --- Update Column

    This is because in row 163 you have #N/A which is causing the mismatch. Should this value actually be in there?

  10. #10
    Forum Contributor
    Join Date
    10-04-2014
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    161

    Re: Macro --- Combine Duplicates --- Delete Row --- Update Column

    That was it. Thank You for your prompt and concise responses!!!!!!!!!!!

+ 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. Replies: 7
    Last Post: 03-13-2015, 05:34 PM
  2. Macro to combine cells and then delete duplicates......
    By Castillb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-07-2014, 08:30 PM
  3. [SOLVED] Macro to combine cells and then delete duplicates......
    By Castillb in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-05-2014, 05:55 PM
  4. [SOLVED] Macro to count unique values in a column, enter it in next column, then delete duplicates
    By pmorisse in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2013, 03:27 PM
  5. combine row and the delete duplicates
    By bamamike in forum Excel General
    Replies: 2
    Last Post: 09-20-2005, 12:05 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