+ Reply to Thread
Results 1 to 2 of 2

Find the number of times 2 items occur together

  1. #1
    Registered User
    Join Date
    05-17-2016
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    1

    Find the number of times 2 items occur together

    Hi there, I am new to Excel and would appreciate if you can help me with my problem!

    Data:
    It consists of 2 columns namely “Order number” and “Product ordered”. For each order number, there will be multiple products being ordered.

    Help:
    I want to find out the number of times any 2 products are ordered together i.e. these 2 products have the same order number. This is to be repeated for all order numbers in the data. E.g. Suppose I have 4 products: A, B, C, D; then to find each possible pair arise from these 4 products: AB, AC, AD, BC, BD, CD.

    Is there any way to find out the number of times any 2 products ordered together in all order numbers? Through any formula or if VBA is needed? Thank you so much!
    Attached Images Attached Images

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,437

    Re: Find the number of times 2 items occur together

    It sounds like you are trying to do market basket/shopping basket/affinity analysis. Try this: https://msdn.microsoft.com/en-us/library/dn282369.aspx
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. Count the number of times a quantity of entries occur within a range
    By sameg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-27-2015, 10:35 AM
  2. program a formula to count number of times event occur before a specific time.
    By yinxzon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-17-2014, 04:15 AM
  3. Replies: 5
    Last Post: 07-23-2014, 12:46 PM
  4. Replies: 8
    Last Post: 07-14-2013, 07:29 PM
  5. Need help returning the number of times 2 events occur simultaneously
    By dudakia in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-30-2012, 06:49 PM
  6. Need help returning the number of times 2 events occur simultaneously
    By dudakia in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 11-20-2012, 09:05 PM
  7. [SOLVED] Flagging formula for file names that do not occur a set number of times
    By njmiller31 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-23-2012, 09:34 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