+ Reply to Thread
Results 1 to 13 of 13

Combination Frequency / Correlations of Toppings

  1. #1
    Registered User
    Join Date
    04-19-2020
    Location
    London
    MS-Off Ver
    Microsoft Excel For Mac - Microsoft 365 - Version 16.67
    Posts
    22

    Combination Frequency / Correlations of Toppings

    Hi All,

    Hope you are well.

    We need to calculate the most favoured topping combinations from attached toppings. The objective is to work out which topping combinations customers select the most and which toppings go together best based on customer selection, i.e. which toppings are combined together most often. The total count of each toppings is obviously easily done but this does not show the correlation, it is the combinations we want to see, e.g. correlation between Mozzarella, Pepperoni, Peppers etc. I thought a correlation matrix would be best to show this but need help developing this. Hoping the question is clear and that this is easy for some of the experts on this forum.

    You help would be very much appreciated.

    Many thanks.
    Branden
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,926

    Re: Combination Frequency / Correlations of Toppings

    What do you want to see? Where do you want to see it?

    Mock up some expected results.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-19-2020
    Location
    London
    MS-Off Ver
    Microsoft Excel For Mac - Microsoft 365 - Version 16.67
    Posts
    22

    Re: Combination Frequency / Correlations of Toppings

    Hi Ali,

    Please see the attached, output tab.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,926

    Re: Combination Frequency / Correlations of Toppings

    In B2 copied across and down:

    =IF(B$1=$A2,"",SUMPRODUCT((MMULT((Sheet1!$B$2:$AE$7679=B$1)+(Sheet1!$B$2:$AE$7679=$A2),{1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1})=2)+0))
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Combination Frequency / Correlations of Toppings

    This sounds to me like "market basket analysis." From what I've seen when this topic has come up before, programming market basket analysis is usually fairly difficult (especially for those of us who aren't initiated in the algorithms). If you aren't required to program your own MBA algorithm from scratch, it is my opinion that the easiest way to do MBA is to obtain a preprogrammed tool -- even if you have to pay for a software license.

    One past version of Excel (I think it was 2013) come with an add-in that had MBA algorithms that could be run direct from Excel. Gut instinct is that MSFT still has that tool floating around (maybe as part of Power Query or Power BI). If you are not required to use a MSFT product, I'm fairly confident that R has a built in MBA tool. I also would not be surprised if Mathcad or similar has MBA tools built in. Of course, you could also put "market basket analysis app" into your favorite search engine or app store and see what options come up.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  6. #6
    Registered User
    Join Date
    04-19-2020
    Location
    London
    MS-Off Ver
    Microsoft Excel For Mac - Microsoft 365 - Version 16.67
    Posts
    22

    Re: Combination Frequency / Correlations of Toppings

    Many thanks Ali for the speedy response, much appreciated!

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,926

    Re: Combination Frequency / Correlations of Toppings

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  8. #8
    Registered User
    Join Date
    04-19-2020
    Location
    London
    MS-Off Ver
    Microsoft Excel For Mac - Microsoft 365 - Version 16.67
    Posts
    22

    Re: Combination Frequency / Correlations of Toppings

    Hi, many thanks, agreed this would likely be the best solution. Can anyone help with providing a model for this? Thanks

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,926

    Re: Combination Frequency / Correlations of Toppings

    Whom are you addressing?

  10. #10
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,435

    Re: Combination Frequency / Correlations of Toppings

    worksheet or Tab name : Output

    Cell B2 formula , drag down and across

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    04-19-2020
    Location
    London
    MS-Off Ver
    Microsoft Excel For Mac - Microsoft 365 - Version 16.67
    Posts
    22

    Re: Combination Frequency / Correlations of Toppings

    Hi, Anyone that may be able to assist with a MBA. Thanks

  12. #12
    Registered User
    Join Date
    04-19-2020
    Location
    London
    MS-Off Ver
    Microsoft Excel For Mac - Microsoft 365 - Version 16.67
    Posts
    22

    Re: Combination Frequency / Correlations of Toppings

    Hi, Many thanks. Same output as the formula from Ali. Appreciate your response.

  13. #13
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,435

    Re: Combination Frequency / Correlations of Toppings

    @BranAlex You're Welcome. Glad to help . Thank You for the feedback.


    If you finally get a solution please mark your thread as SOLVED:
    - Click Thread Tools above your first post,you will see the word PREFIX on the upper left, press the button to select [SOLVED] select "Mark your thread as Solved".
    - you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help
    was given. By doing so you can add to the reputation(s) of those who helped.

+ 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 combination amounts in equal frequency over 12 months
    By Derek Cavanagh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-24-2013, 04:36 AM
  2. multiple correlations - help!
    By cxr in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 10-22-2012, 06:39 PM
  3. Complex correlations
    By Razyg in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-13-2010, 11:05 AM
  4. Correlations
    By gnoke in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2010, 09:09 AM
  5. Concordancy/Correlations
    By Jay Jay in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-10-2007, 03:49 PM
  6. Partial correlations
    By Bill TOng in forum Excel General
    Replies: 1
    Last Post: 05-10-2006, 05:50 PM
  7. [SOLVED] Partial correlations
    By Vaalie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-10-2006, 05:50 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