+ Reply to Thread
Results 1 to 9 of 9

filter and sum like part numbers

  1. #1
    Registered User
    Join Date
    02-04-2010
    Location
    Seattle, Washington
    MS-Off Ver
    Excel 2003
    Posts
    7

    filter and sum like part numbers

    I have a list of part numbers and sub assemblies like this:

    PART_______________QUANTITY
    ABC_______________1
    123A_______________2
    124A_______________4
    125A_______________6
    ABD_______________2
    124A_______________3
    125A_______________5
    126A_______________7
    I would like to flatten the list and sum all of the like part numbers into one line item like this:

    PART_______________QUANTITY
    ABC_______________1
    ABD_______________2
    123A_______________2
    124A_______________7
    125A_______________11
    126A_______________13


    I've been doing this by hand, but as my projects grow bigger I'm spending an hour or better just simplifying and summing the rows by hand. As part of simplifying this all I'm putting the simplified list on a seperate sheet. I'm not sure if it's possible, but I'd also like to keep the list dynamic so that I don't have to redo work as I make small changes on teh first list. Am I reaching too high for all this? Can anyone point me in the right direction on how to pull this off? Should I be looking at macros, or can it be done with built in functions? Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: filter and sum like part numbers

    If no one else has any ideas, I can take a crack at it. Could you possibly post a sample of the workbook with some dummy data so I can get a better feel for the layout and . Also, if you choose to post a sample, please post in 2003 compatibility (if you have Excel 2007) because I do not have version 2007 on this compuer.

  3. #3
    Registered User
    Join Date
    02-04-2010
    Location
    Seattle, Washington
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: filter and sum like part numbers

    Here's a demo data set. I've also done a second sheet in it showing more clearly what I'm trying to do. Obviously I did this the long way by manually reducing them. Thanks for the help.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: filter and sum like part numbers

    Two methods.
    1. On Bill of Materials Sheet insert a column A and in A3 =B3&C3 dragged down.
    In row 2 of Simplified

    =SUMIF('Bill of Materials'!$A$3:$A$180,A2&B2,'Bill of Materials'!$D$3:$D$180)

    2. Without the dummy column, on simplified row 2,

    =SUMPRODUCT(--('Bill of Materials'!$A$3:$A$180=A2), --('Bill of Materials'!$B$3:$B$180=B2),'Bill of Materials'!$C$3:$C$180)

    Take your pick. Either of these work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

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

  5. #5
    Registered User
    Join Date
    02-04-2010
    Location
    Seattle, Washington
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: filter and sum like part numbers

    That definitely takes care of the summing like part numbers part, but can it be modified to not create duplicate part number entries? If need be I can do that part by hand; this is still enormously helpful.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: filter and sum like part numbers

    try a pivot table,unmerge cells and put a separate col heading add a new column as shown(i called it sum)
    Attached Files Attached Files
    Last edited by martindwilson; 08-17-2010 at 07:37 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Registered User
    Join Date
    02-04-2010
    Location
    Seattle, Washington
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: filter and sum like part numbers

    Can you elaborate on how you configured the pivot table? That looks pretty much like what I was thinking.

  8. #8
    Registered User
    Join Date
    02-04-2010
    Location
    Seattle, Washington
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: filter and sum like part numbers

    Also, can a pivot table dynamically update? I tried changing one of the values but it didn't update on the second sheet.

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: filter and sum like part numbers

    errr not of the top of my head! use the wizard and see whats hidden whats used
    also check each fields properties and check the general properties.
    you also need to right click refresh data id you add something new or even create a dynamic range for use in table

+ 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