+ Reply to Thread
Results 1 to 2 of 2

Count Unique Pairs of Excel Entries Based on Criteria

  1. #1
    Registered User
    Join Date
    11-20-2012
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2010
    Posts
    7

    Count Unique Pairs of Excel Entries Based on Criteria

    Here's my problem:

    I have two columns. Column A has Customer IDs (e.g., 1, 2, 3, 4, ...), to where I can't possibly list all of the possibilities of ID number. Column B has Product IDs (e.g., A, B, C, D, E), which are a limited set (no more than 15 values).

    I need to write a formula that checks:
    IF a customer bought product A, did they ALSO buy one of the others (besides another A)?

    So far, I've been close with a few options I found elsewhere on the Internet, but I haven't been able to weed out things like if Customer 1 bought Product A twice (which shouldn't be counted).

    Also, the data I work with notoriously has blanks/missing data/0 values.

    Help??
    Last edited by DonFord81; 01-22-2013 at 01:22 PM.

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

    Re: Count Unique Pairs of Excel Entries Based on Criteria

    Try a pivot table, maybe putting Products as a column field, Customer ID as a Row field and Count of Product as data. Alternately, you could put both Customer and Product as Row fields and Count of product as data. See which format you prefer.
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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