+ Reply to Thread
Results 1 to 11 of 11

Adding up how many time a number appears

  1. #1
    Registered User
    Join Date
    10-28-2013
    Location
    Mass.
    MS-Off Ver
    Excel 2010
    Posts
    7

    Adding up how many time a number appears

    I have a list of 10,000 part numbers. Many of the part numbers repeat. Is there a function that will give me a list of the part numbers and how many times they occur? In addition can the function also add up how mant times that part number was accepted or rejected? Sampe below:

    39896 Reject
    40675 Accept
    41904 Reject
    41904 Accept
    41904 Accept
    42117 Accept
    42791 Accept
    42855 Accept
    42885 Accept
    43132 Accept
    43136 Accept
    43737 Accept
    43737 Accept
    43737 Accept

    Result:
    Part# Accept Reject
    39896 0 1
    40675 1 0
    41904 2 1
    42117 1 0
    42791 1 0
    42855 2 0
    43132 1 0
    43136 1 0
    43737 3 0
    If I use the COUNTIF function I have to type in every part number to find the instances of that part number and there are hundreds of part numbers. Is there a function or group of functions that will do this for me automatically?

  2. #2
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: Adding up how many time a number appears

    Have you tried pivot table?

    If you need help, upload file and someone here can help you create a pivot table.
    Regards,
    Vandan

  3. #3
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Columbus Ohio
    MS-Off Ver
    Excel 2010
    Posts
    137

    Re: Adding up how many time a number appears

    I am not the best with excel or vba. But I had a similar situation and I used the following function to sort and mark repeated data. I then filtered the data by that addition. You can take it into a pivot table at that point and get the sum of the parts. Place the code in the cell you want to add the word duplicate and then drag down through all parts.
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-28-2013
    Location
    Mass.
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Adding up how many time a number appears

    How do I upload a file?

  5. #5
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Columbus Ohio
    MS-Off Ver
    Excel 2010
    Posts
    137

    Re: Adding up how many time a number appears

    Click on quick reply, then click go advanced. In the top row of icons there should be a paperclip/. Click that and browse for your file!

  6. #6
    Registered User
    Join Date
    10-28-2013
    Location
    Mass.
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Adding up how many time a number appears

    Thanks. Here is the file. I'd like to have the result be how many times each part number appears and for each part number how many times it was accepted, and rejected.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Columbus Ohio
    MS-Off Ver
    Excel 2010
    Posts
    137

    Re: Adding up how many time a number appears

    It's not working the way I want IE it isn't adding the duplicate parts 100% but here is an example of the book with a Pivot Table.part number accept reject.xlsx

  8. #8
    Registered User
    Join Date
    10-28-2013
    Location
    Mass.
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Adding up how many time a number appears

    Thanks Jonboy. I'll study it to see if I can figure out what's going on. It's on my list to get good at doing pivot tables. I feel so out of date.

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Adding up how many time a number appears

    I copied column A to a new location and Removed Duplicates then had columns for Accept and Reject.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  10. #10
    Registered User
    Join Date
    10-28-2013
    Location
    Mass.
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Adding up how many time a number appears

    THANKS!

    That seems to work. Appreciate all the help.

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Adding up how many time a number appears

    Thanks for the feedback.

+ 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. Adding number of times word appears in date range across multiple sheets
    By ashbeeigh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-17-2013, 01:49 PM
  2. [SOLVED] Find the row number of an ID in relation to the first time that ID appears
    By cfoxc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-10-2012, 06:10 PM
  3. Replies: 3
    Last Post: 10-02-2007, 09:53 AM
  4. Selecting the first time a number appears
    By Jaydubs in forum Excel General
    Replies: 11
    Last Post: 07-18-2006, 02:35 AM
  5. Selecting the first time a number appears (part 2)
    By Jaydubs in forum Excel General
    Replies: 2
    Last Post: 07-17-2006, 09:50 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