+ Reply to Thread
Results 1 to 9 of 9

Remove duplicates after updating rows

  1. #1
    Registered User
    Join Date
    02-07-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    8

    Remove duplicates after updating rows

    Hi All,

    I have a spread sheet which has a range as shown below.

    Batch Number Item 1 Item 2 Item 3
    P1 556 35
    P2 54
    P3 78
    P2 568
    P4 54
    P3 89
    P3 85

    I need to get the output as shown below which is for Batch number P2 I need to include Item 1 (568) in one row and delete the other P2 row. similarly I need to do for P3. The end result will be as shown below. Please advice on how to make a macro for this. (I have also attached a spreadsheet ) Any help is appreciated.

    Batch Number Item 1 Item 2 Item 3
    P1 556 35
    P2 568 54
    P3 89 85 78
    P4 54
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Remove duplicates after updating rows

    Use Pivot Table


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    02-07-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Remove duplicates after updating rows

    Hello Sixthsense

    That was very quick and that is just perfect. It worked. Now I need to try that in my office where the data is insanely huge.. I shall update you on how you went.

    Once again, thanks a bunch. Never thought a simple Pivot table could do the magic..

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Remove duplicates after updating rows

    You're welcome and thanks for the feedback

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Remove duplicates after updating rows

    as an option
    Please Login or Register  to view this content.

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Remove duplicates after updating rows

    Try this code on your attached sheet to see if this works as per your requirement. But before trying this code on that sheet, delete all the rows below row 13 where you mentioned the steps and desired output manually.
    Please Login or Register  to view this content.
    Hope that helps.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  7. #7
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Remove duplicates after updating rows

    Personally I would go with the Code as posted by nilem.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  8. #8
    Registered User
    Join Date
    02-07-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Remove duplicates after updating rows

    Very responsive Forum. A BIG THANKS YOU ALL

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Remove duplicates after updating rows

    You're welcome. Glad it helped. Thanks for the feedback and the Rep.

+ 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. [SOLVED] Find duplicates rows, sum cells then remove duplcate rows
    By Wagstaff in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-22-2013, 09:37 AM
  2. Remove rows without Duplicates
    By Apple1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-28-2013, 10:12 AM
  3. Remove Duplicates from Rows
    By dwc in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-24-2013, 06:47 AM
  4. Replies: 1
    Last Post: 10-23-2012, 09:12 AM
  5. Remove unique rows and keep duplicates
    By tmduffy in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 10-30-2010, 08:31 AM

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