+ Reply to Thread
Results 1 to 6 of 6

Find duplicates in column A, add values from column B (possibly delete duplicates)

  1. #1
    Registered User
    Join Date
    07-11-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Find duplicates in column A, add values from column B (possibly delete duplicates)

    I am trying to find a macro that will find duplicates in a column, and then add all quantities in the next column for each duplicate. It can then either delete the duplicates, or just list the total quantity in a 3rd column. I have attached an example that includes the desired results. Any help would be greatly appreciated. Thanks.

    It looks like it might be similar to the following thread, but I am too much of a beginner to know what to change.

    http://www.excelforum.com/excel-prog...uplicates.html
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Find duplicates in column A, add values from column B (possibly delete duplicates)

    hi luarwhite, option2, formula solution: D3 and drag down
    Please Login or Register  to view this content.

  3. #3
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Find duplicates in column A, add values from column B (possibly delete duplicates)

    For Option2, in D3 and drag down similar to watersev's method:
    =SUMIF($B$3:$B$25,B3,$C$3:$C$25)

  4. #4
    Registered User
    Join Date
    07-11-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Find duplicates in column A, add values from column B (possibly delete duplicates)

    Thanks! That works for me!

  5. #5
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Find duplicates in column A, add values from column B (possibly delete duplicates)

    For Option 1, copy that sheet and run:
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-11-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Find duplicates in column A, add values from column B (possibly delete duplicates)

    Thanks again Kenneth. That works great!

+ 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