+ Reply to Thread
Results 1 to 6 of 6

Thread: Combining data in duplicate rows, Excel 2007

  1. #1
    Registered User
    Join Date
    08-15-2008
    Location
    AUSTRALIA
    Posts
    2

    Exclamation Combining data in duplicate rows, Excel 2007

    Okay so I'm hoping someone can help me.

    I have a looooong (about 180 000 rows) list of part numbers, descriptions, prices and quantities. There are many duplicate part numbers. I need to go through and find the duplicates, add all their quantities into one cell and delete the remaining duplicates. I have used conditional formatting to find the duplicates easier but cannot use the remove duplicates button as it will delete the whole row and I need the quantity information in each row.

    Does anyone have any ideas on a formula or macro I can set up to search the part number column (F) for duplicates and add the figures in the quantity column (J) and THEN delete the duplicate part number rows?

    Maybe I need to put the new combined information in another sheet?

    Technically I am an advanced user of Excel but have been out of the game for a bit so am a bit rusty so please explain as simply as possible

    Many thanks in advance guys, hopefully I can find a solution or I'm going to have many many days of manually going through the whole lot.

  2. #2
    Valued Forum Contributor Stuie's Avatar
    Join Date
    09-17-2006
    Location
    Suffolk, UK
    MS-Off Ver
    Excel 2003/2007
    Posts
    432
    Hi tsdet08,

    I oftern find that when searching out duplicates its easiest to sort the data by that column and then run this formula down the side.

    =IF(A2<>A1,0,1)

    this is will then make the first instance of a new value a 0 and all duplicates will have a 1 next to them.

    you can then paste specials on the column with the forumla in and then re sort the data by that column and delete all rows with a 1 in.

    (thats after having sorted out the sub totals)

    If im missing something let me know


    EDIT: i have attached an example
    Attached Files Attached Files
    Last edited by Stuie; 08-15-2008 at 04:20 AM.
    There are only 10 types of people in the world:
    Those who understand binary, and those who don't!

  3. #3
    Registered User
    Join Date
    08-15-2008
    Location
    AUSTRALIA
    Posts
    2

    Thank You!!

    Took me a while to understand it but I did in the end and it works perfectly!

    Thank you sooo much for your help. You've saved me a LOT of work. I knew that there had to be an easier way to do it.

    Thanks again.

  4. #4
    Registered User
    Join Date
    07-22-2008
    Location
    DELHI
    Posts
    8
    hi you can apply a pivot table to solve your problem as well
    u just need to put name at row side and column at field area

  5. #5
    Registered User
    Join Date
    07-07-2011
    Location
    Pickering, Yorkshire
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Combining data in duplicate rows, Excel 2007

    This just saved me a monster amount of time... Thanks...

  6. #6
    holin_168
    Guest

    Re: Combining data in duplicate rows, Excel 2007

    I have written a solution of combining data in duplicate rows, excel 2007 over here please check it if it can help you or not?
    Last edited by holin_168; 01-27-2012 at 04:33 AM.

+ 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.2.0