+ Reply to Thread
Results 1 to 4 of 4

Counting Unique Values - Slight variations do not seem to work properly

  1. #1
    Registered User
    Join Date
    08-08-2007
    Posts
    80

    Counting Unique Values - Slight variations do not seem to work properly

    Having a hard time troubleshooting this, might as well give it a crack here.

    I have a single spreadsheet I am using to keep track of revisions, broken down into individual production facility via workbooks. Each plant has a different way of breaking down their products, but for the most part its Group 1, Group 2 etc etc. Each grouping is specific machine line.

    Within each machine line there are the products themselves that are being changed. I am tracking the overall numbers on a single sheet for all plants. There is a lot of numbers I am capturing, my only concern for this inquiry is shown below:

    image4.PNG

    SKUs in this case are the # of different products we are revising. I am trying to get formula's setup so I can count # of products we are working on, separate from number of parts we are updating.

    Within each individual plant line, I am using the following formula, based upon Line 2110:

    =SUM(IF(FREQUENCY(IF(Plant1!$G$2:$G$10030=E4, IF(Plant1!$A$2:$A$10030<>"",MATCH(Plant1!$A$2:$A$10030,Plant1!$A$2:$A$10030,0))),ROW(Plant1!$A$2:$A$10030)-ROW(Plant1!$A$2)+1),1))

    Based upon Group 1:

    =SUM(IF(FREQUENCY(IF(Plant1!$F$2:$F$10030=B2, IF(Plant1!$A$2:$A$10030<>"",MATCH(Plant1!$A$2:$A$10030,Plant1!$A$2:$A$10030,0))),ROW(Plant1!$A$2:$A$10030)-ROW(Plant1!$A$2)+1),1))

    The problem lies in the greenish line. The numbers do not add up and I am unsure why. It should read the number as 116 total (Group 1, 2 and 3 added up) but it gives me 114.

    The formula for the green section is:

    =SUMPRODUCT((Plant1!$A$2:$A$10030<>"")/COUNTIF(Plant1!$A$2:$A$10030,Plant1!$A$2:$A$10030&""))

    I am unsure where the 2 extra's are coming from. I have no blanks, no random numbers somewhere. Everything seems lined up. The reason why I am using these formula's is because the SKU's can sometimes be a string of numbers, a string of letters, or both at the same time. Unique values was where I was going towards.

    Any advice on this subject would be great or any tricks to confirm the numbers are jiving correctly would be helpful.
    Last edited by Karroog; 04-29-2014 at 01:09 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Counting Unique Values - Slight variations do not seem to work properly

    I don't think those numbers should necessarily add up to the same total. The overall number of different products (114) should only be equal to the sum of the number of different products per Line if each product appears in one Line exactly (not in two or more and not in zero). Can you be sure that is the case?
    Audere est facere

  3. #3
    Registered User
    Join Date
    08-08-2007
    Posts
    80

    Re: Counting Unique Values - Slight variations do not seem to work properly

    I did not want you to think I forgot about the post, I am actually going through the list and trying to figure out if there are duplicates in different groupings. Since they are different production lines each product should be within only 1 print line, no other. I just did Data > Remove Duplicates really quickly and it got 114, so something must not be adding up within each group. I'll reply with the details in a little bit.

  4. #4
    Registered User
    Join Date
    08-08-2007
    Posts
    80

    Re: Counting Unique Values - Slight variations do not seem to work properly

    There it is, you were right there were duplicates. This solves the issue. Thanks!

+ 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] validate 1 item has 5 variations; if not add missing variations
    By ccampbell14 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-25-2013, 03:03 PM
  2. [SOLVED] counting unique values in col A against unique value in column B
    By greyscale in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2013, 08:43 AM
  3. Replies: 2
    Last Post: 06-06-2012, 01:44 PM
  4. counting format variations
    By tonyfrier in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-28-2012, 04:47 AM
  5. Replies: 0
    Last Post: 03-08-2012, 12:18 PM

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