+ Reply to Thread
Results 1 to 6 of 6

Add up quantitites in Column E based on duplicates in Column A, then delete duplicates

  1. #1
    Registered User
    Join Date
    05-02-2016
    Location
    85132
    MS-Off Ver
    2013
    Posts
    12

    Add up quantitites in Column E based on duplicates in Column A, then delete duplicates

    I need to have the quantities in column E added up the duplicate part numbers in Column A. (Top Image is what I have, bottom is what I need).
    I need this to be done in VBA because it is a Sub called by another Sub.

    I have script that can easily delete all duplicates, but my problem is that I need the TOTAL quantity for the repeated part number and I am not good enough with VBA to accomplish that.

    Can anyone help? PLEASE NOTE that the image has an error. Part# 05-80100-375 should be in my "what I want" image only ONCE and the total should be 83 in column E. (Didn't notice that until I had already saved the image)

    Thanks!ju3Yw6M.png

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Add up quantitites in Column E based on duplicates in Column A, then delete duplicates

    Please send an XLSX sample of your file to help to prepare macro
    - Battle without fear gives no glory - Just try

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

    Re: Add up quantitites in Column E based on duplicates in Column A, then delete duplicates

    Untested
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-02-2016
    Location
    85132
    MS-Off Ver
    2013
    Posts
    12

    Re: Add up quantitites in Column E based on duplicates in Column A, then delete duplicates

    Awesome! Thank you very much!!!

  5. #5
    Forum Contributor
    Join Date
    10-19-2012
    Location
    Omaha, Nebraska USA
    MS-Off Ver
    Excel 2010
    Posts
    249

    Re: Add up quantitites in Column E based on duplicates in Column A, then delete duplicates

    Hi,

    From your images, here is code that should consolidate quantities:

    Please Login or Register  to view this content.
    Hope that helps,

    Dan

  6. #6
    Registered User
    Join Date
    05-02-2016
    Location
    85132
    MS-Off Ver
    2013
    Posts
    12

    Re: Add up quantitites in Column E based on duplicates in Column A, then delete duplicates

    Thank you! I will give it a shot! I appreciate all the help!

+ 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 in column and then based on row criteria delete the row of that Duplicate
    By bobberuk in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-23-2016, 01:56 PM
  2. How to efficiently delete entire rows based on duplicates in one column
    By HughManatee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-16-2013, 06:53 PM
  3. Replies: 8
    Last Post: 08-08-2013, 08:45 AM
  4. [SOLVED] Find duplicates in column A, add values from column B (possibly delete duplicates)
    By luarwhite in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-12-2013, 04:34 PM
  5. [SOLVED] Find duplicates, concatenate into different column, sum and delete duplicates
    By rosannang in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-17-2013, 11:23 AM
  6. How do you delete a row based on duplicates in one column
    By Franklic in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-14-2012, 01:21 AM
  7. Delete duplicates in one column, based on dates of another?
    By eptesicus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-21-2012, 02:44 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