+ Reply to Thread
Results 1 to 4 of 4

VBA to sum all duplicate ID and paste to new sheet

  1. #1
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    VBA to sum all duplicate ID and paste to new sheet

    Hi,

    I'm looking for a VBA or a formula that could sum all the duplicate ID and go to the new sheet to paste unique ID and the sum of all the data. If you look at my spreadsheet, I want the result looks like in Sheet2.

    Thanks,

    Sum Duplicate Data.xlsx

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: VBA to sum all duplicate ID and paste to new sheet

    tantcu,

    Using your provided workbook, in 'Sheet2' cell C5 copied over and down:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: VBA to sum all duplicate ID and paste to new sheet

    Hi Thank you for the reply. Sheet2 just the sample result I want to have. Imagine you don't have the unique ID in sheet2 to do SUMIFS just yet. How do you handle that issue when it could be thousands of data in sheet1

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: VBA to sum all duplicate ID and paste to new sheet

    Use advanced filter to get the unique list
    http://www.contextures.com/xladvfilter01.html

+ 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