Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2004
    Easley, South Carolina, USA
    Thanked 0 Times in 0 Posts

    Unique Entries (Excel 2003 SP2)

    I have been give a 2 column Spreadsheet that has Part Numbers in Column A, and Quantities in Column B. There can be an unlimited
    number of replications for part numbers as this was a massive inventory and the same part number could occur dozens (or more) times.
    My task is to create a Column C that has a list of the unique part numbers and a Column D that has the number of parts associated
    with that part number. I know that I can Sort Column A by Part Numbers and that will give me the Unique Part Numbers and then I
    can sum the associated numbers in Column B: But it seems as if there should be a simple way to do this. Any thoughts?
    Note: In many cases there will be zero quantities for a Part Number -- that is just the way the inventory was compiled. I do not have
    any named ranges.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Thanked 31 Times in 31 Posts

    Re: Unique Entries (Excel 2003 SP2)

    A pivot table will do this for you.
    The original table must have column headers (titles) in its first row; if you don't have them, insert a new row at the top and enter (for example) Part Number in column A and Quantity in column B.
    Click in one of these, then select Data | Pivot Table and Pivot Chart Report.
    Click Next twice, then click Layout...
    Drag Part Number to the Row area and Quantity to the Data area, it should automatically become Sum of Quantity.
    If it says Count of Quantity, double click it and select Sum.
    Click OK, then specify where you want the pivot table: on a new sheet or on the current sheet (you mist specify a starting cell)
    Finally click Finish.

  3. #3
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Pittsburgh, Pennsylvania, USA
    Thanked 342 Times in 335 Posts

    Re: Unique Entries (Excel 2003 SP2)

    You can use a pivot table
    Data - pivot table report. in the layout, use column A as the "row" and the sum of B as the "data"


  4. #4
    Gold Lounger
    Join Date
    Feb 2004
    Cape Town, RSA
    Thanked 1 Time in 1 Post

    Re: Unique Entries (Excel 2003 SP2)

    Just in case you are not aware of the "SubTotal" feature in the Data Menu (since you do not mention it explicitly), you can also do it using this feature:

    1. Ensure you have column headings for the list
    2. Sort the list based on Part No.
    3. Select a cell in the list and choose Data : SubTotals
    4. In the dialog choose Part No as dropdown entry, ensure sum is the function and Quantity is checked at the bottom
    5. Choose OK

    Once the subtotals are created you can collapse the list by clicking on the outline symbols on the left of the screen (esp. No 2 (to collapse detail))
    Attached Images Attached Images

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts