+ Reply to Thread
Results 1 to 5 of 5

Count multiple

  1. #1
    Registered User
    Join Date
    12-05-2019
    Location
    London
    MS-Off Ver
    1910
    Posts
    2

    Count multiple

    Hi,

    I'm very new to reporting and have been tasked with finding out the combinations of products that have been bought by multiple clients, and their frequency. There are 6 products in total and every client has bought at least 2, maximum 4.

    Each row is a purchase (product, client) and there are 408 in total.

    So ideally I would like to find out every combination that appears e.g Product 1 and Product 2, and how many times this combination has been purchased - Basically I need to find out what our most popular product combinations are.

    I could do this manually however this list will keep getting longer!

    Any help and guidance would be incredibly appreciated!!

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Count multiple

    here is your example reattached giving you two different formulas you can use, one for a count by client (BTW you have an extra space for "Client 1 " that I accounted for but you should remove).
    The other formula is to return a unique list of products by client that they purchased.
    I put the client names in row 1 beginning in cell D1
    formula 1 =COUNTIF($B$2:$B$12,D1) then drag right
    formula 2 =IFERROR(INDEX($A$2:$A$12,AGGREGATE(15,6,ROW($A$1:$A$12)/($B$2:$B$12=D$1),ROWS($A$2:A2)),COLUMN()-(COLUMN()-1),1),"") drag down until returns blanks, then drag right
    Attached Files Attached Files
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    12-05-2019
    Location
    London
    MS-Off Ver
    1910
    Posts
    2

    Re: Count multiple

    Thank you so much for this!

    Do you know how I would now be able to count the number of times the combination appears, so regardless of the client? So, there are 189 clients, each with a combination of products bought. Would it be possible to see:

    1) How many combinations of products bought there are (e.g Product 1 + Product 6, Product 3 + Product 4 + Product 6)
    2) How many times each combination of products was bought? (e.g Product 1 + Product 6 was purchased by 7 clients, Product 3 + Product 4 + Product 6 was purchased by 12 clients)?

    I've reattached your example - any help would be great!

    Thanks again!
    Attached Files Attached Files

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Count multiple

    how many products do you have? Because the new requirements (1 and 2 in post#3) of your request would require a matrix - potentially an enormous combination of values. For example, someone can buy 1 and 6, another 1 and 5, another 1 and 4, another 1 and 3, another 1 and 2 and another 1 only. Then 1,2 and 6 and another 1, 2 and 5, the combinations could be quite large.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Count multiple

    I'm not REALLY sure what you want... but how does this array formula look, in combination with the drop-down box to its left.

    =SUMPRODUCT((MMULT(COUNTIFS(B2:B12,B2:B12,A2:A12,TRANSPOSE(Combo)),ROW(Combo)^0)>=2)/COUNTIF(B2:B12,B2:B12))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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] Formula to count matches between multiple columns on different sheets w/ multiple criteria
    By RICK JAMES in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-05-2019, 03:28 PM
  2. [SOLVED] Formula to count occurrences, multiple ranges, multiple criteria, with wildcard
    By TMMc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-23-2017, 03:27 PM
  3. [SOLVED] Sort and Count Unique List Across Multiple Columns - Student Count
    By BuntyMac in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 08-17-2014, 07:00 AM
  4. Count number of Rows with multiple criteria (multiple valued cells)
    By garog in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-09-2014, 01:33 PM
  5. Replies: 1
    Last Post: 02-21-2014, 09:09 PM
  6. count if multiple criteria and count of Fri is it is in thu
    By siddiq1212 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-24-2014, 06:09 PM
  7. Count Multiple Entries, Return Multiple Rows, Based On 3 Criteria
    By gtj_global in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-20-2008, 06:40 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