+ Reply to Thread
Results 1 to 5 of 5

Deleting duplicates and summing totals

  1. #1
    Registered User
    Join Date
    01-16-2014
    Location
    Kansas City
    MS-Off Ver
    Excel 2003
    Posts
    12

    Deleting duplicates and summing totals

    sample3.xlsx
    I'm still having issues with this workbook. I cannot use a pivot table to fix it, I don't understand them and it confuses me greatly..... so I'm at the mercy of either a formula or macro. I need to combine the duplicate part numbers (a), total the quantities, average the price (d), and total the amount of the part (e). I'm having a very difficult time with it. Can anyone help educate me?


    Thank you!


    (I have a sample attached that is file sample 2, and the entire spreadsheet attached- sample 3)
    Attached Files Attached Files
    Last edited by JetRich; 01-27-2014 at 07:39 PM. Reason: explain attachements

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Deleting duplicates and summing totals

    Sure, just copy columns A and B to another tab then select them and go to Data -> Remove duplicates. Now we have the unique identifier to sum and average by.

    (This is essentially creating a Pivot Table by hand)

    In C2 of your summary tab now:

    =SUMIF(Table_OPEN_SO_REPORT_LINK[PN],[@PN],Table_OPEN_SO_REPORT_LINK[QTY_ORDERED])

    D2:

    =AVERAGEIF(Table_OPEN_SO_REPORT_LINK[PN],[@PN],Table_OPEN_SO_REPORT_LINK[UNIT_PRICE])

    E2:

    =AVERAGEIF(Table_OPEN_SO_REPORT_LINK[PN],[@PN],Table_OPEN_SO_REPORT_LINK[TOTAL])

    F2:

    =SUMIF(Table_OPEN_SO_REPORT_LINK[PN],[@PN],Table_OPEN_SO_REPORT_LINK[QTY_INVOICED])

    PivotTables by Hand.xlsx
    Last edited by daffodil11; 01-27-2014 at 07:57 PM.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    01-16-2014
    Location
    Kansas City
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Deleting duplicates and summing totals

    worked great. thank you!!!!

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Deleting duplicates and summing totals

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Registered User
    Join Date
    01-16-2014
    Location
    Kansas City
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Deleting duplicates and summing totals

    I added the reputation. Thank you for marking it solved. I appreciate and will do this in the future. Thank you!

+ 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] Summing Column B Totals with Column A duplicates
    By Erik Thomas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-12-2012, 09:27 PM
  2. Deleting Duplicates-find out a way to delete duplicates
    By sighlent1 in forum Excel General
    Replies: 2
    Last Post: 04-19-2011, 10:17 AM
  3. Duplicates and summing totals
    By KRayKeeling in forum Excel General
    Replies: 2
    Last Post: 07-12-2007, 01:49 PM
  4. [SOLVED] Summing Weekly Totals into Monthly Totals
    By steph44haf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-05-2006, 11:55 AM
  5. Help with Summing Up Totals
    By sabunabu in forum Excel General
    Replies: 4
    Last Post: 12-12-2005, 11:10 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