+ Reply to Thread
Results 1 to 3 of 3

Remove duplicates based while keeping other rows in tact.

  1. #1
    Registered User
    Join Date
    02-08-2009
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    3

    Remove duplicates based while keeping other rows in tact.

    I have a spreadsheet of products from different suppliers. The suppliers give me information on their price, quantity, descriptions, categories etc. based on one part number.

    I need to display the lowest priced product. I also need to combine all suppliers' quantities.

    I have attached an example. It doesn't matter to me if I need to use multiple sheets or several formulas.

    I wanted to mention I searched the forum up and down for an answer to this. If this has already been posted, I apologize.

    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Remove duplicates based while keeping other rows in tact.

    Please see the attachment.

    It uses a macro to search for the minimum price for each catalogue number.

    Please Login or Register  to view this content.
    The first statement inside the For loop makes sure that the catalogue number is processed on its first appearance in the list only. The list need not be sorted by catalogue number.

    Hope this helps.
    Attached Files Attached Files
    Martin

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Remove duplicates based while keeping other rows in tact.

    no vba see attached sheet2
    you need to prepare a list of non duplicates for use in col a sheet2
    you should simply b able to do that with excel2007 remove duplicate function

    formula in column b (minif) is array entered with ctrl shift and enter
    note in cols b and c the range throught the formula should be the same so if one bit says a3:a600 then the other bit should say b3:b600
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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.6.0 RC 1