+ Reply to Thread
Results 1 to 3 of 3

sum and remove duplicates

  1. #1
    Registered User
    Join Date
    11-22-2018
    Location
    england
    MS-Off Ver
    2013
    Posts
    12

    sum and remove duplicates

    Hi,

    Could anyone help to write a vba code to sum values in col c and remove duplicates in A B. but keep all data in A B C.

    sd.png

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: sum and remove duplicates

    In E2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and in F2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: sum and remove duplicates

    I would use a Pivot Table for this.

    Highlight A1:C11 > Insert > Pivot Table > Choose where to put it > OK
    Drag product under ROWS and qty under VALUES
    Make sure qty is being summed. If it isn't you can click on qty under VALUES and select Value Field Settings > Sum > OK
    You can choose to keep or remove the grand total at the bottom here: Design > Grand Totals > Off for Rows and Columns

    See attachment.
    Attached Files Attached Files

+ 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. Compare lists of URLs for duplicates, and remove duplicates
    By mrfranklin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2021, 02:54 AM
  2. Replies: 6
    Last Post: 11-27-2018, 07:17 AM
  3. Replies: 6
    Last Post: 10-19-2018, 02:44 PM
  4. Replies: 1
    Last Post: 10-23-2012, 09:12 AM
  5. Replies: 5
    Last Post: 02-28-2012, 02:52 PM
  6. Need VBA code to remove entries if there are duplicates (remove them totally)
    By BrandonFromSingapore in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2012, 12:50 AM
  7. Replies: 2
    Last Post: 03-20-2011, 11:19 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