+ Reply to Thread
Results 1 to 6 of 6

The most popular meals in Italy

  1. #1
    Registered User
    Join Date
    07-02-2021
    Location
    NYC
    MS-Off Ver
    Excel for Mac 2016
    Posts
    2

    The most popular meals in Italy

    I'm trying to build out a list of the top cells in a cross-tab. I'm trying to create a top ten list of pasta and wine in all of Italy. I have a table of # meals served by type of pasta and wine. How can I go about creating a table of the most popular combinations?

    I've figured out how to extract the top values using the LARGE() function, but how to secure the corresponding column and row labels so that I can have a nice chart?

    RANK PASTA WINE MEALS SERVED
    1 Ravioli Sangiovese 9982
    2...
    3...

    Full disclosure, the data is fictional, but typing it up made me hungry nonetheless.
    Screen Shot 2021-07-02 at 7.29.27 PM.png
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    12-13-2013
    Location
    Calgary,AB,Canada
    MS-Off Ver
    2016,O365
    Posts
    236

    Re: The most popular meals in Italy

    C6=INDEX(F:F,SUMPRODUCT(($G$4:$R$24=LARGE($G$4:$R$24,ROW(A1)))*(ROW($G$4:$R$24))))
    D6=INDEX($3:$3,SUMPRODUCT(($G$4:$R$24=LARGE($G$4:$R$24,ROW(A1)))*(COLUMN($G$4:$R$24))))

    Formula above will give you result directly from table area without helper column in B.

  3. #3
    Registered User
    Join Date
    07-02-2021
    Location
    NYC
    MS-Off Ver
    Excel for Mac 2016
    Posts
    2

    Re: The most popular meals in Italy

    It looks like you use the A1 to derive the rank. Very smooth. Thank you. I dropped it in and it worked like a charm.

    For reference if anyone decides to actually use the excel I uploaded, there is an error in the meals served column. B6 should say =LARGE($F$4:$R$24,A6)

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: The most popular meals in Italy

    Alternate formulas,
    C6=INDEX($G$4:$G$24,SUMPRODUCT(($H$4:$S$24=$B6)*ROW($G$4:$G$24))-ROW($G$4)+1)
    D6=INDEX($H$3:$S$3,SUMPRODUCT(($H$4:$S$24=$B6)*COLUMN($H$3:$S$3))-COLUMN($H$3)+1)

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

    Re: The most popular meals in Italy

    Cell C6 array formula , Drag down

    HTML Code: 
    Cell D6 array formula , Drag down

    HTML Code: 

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: The most popular meals in Italy

    Quote Originally Posted by josephteh View Post
    Alternate formulas,
    C6=INDEX($G$4:$G$24,SUMPRODUCT(($H$4:$S$24=$B6)*ROW($G$4:$G$24))-ROW($G$4)+1)
    D6=INDEX($H$3:$S$3,SUMPRODUCT(($H$4:$S$24=$B6)*COLUMN($H$3:$S$3))-COLUMN($H$3)+1)
    Sorry, correction:
    C6=INDEX($F$4:$F$24,SUMPRODUCT(($G$4:$R$24=$B6)*ROW($F$4:$F$24))-ROW($F$4)+1)
    D6=INDEX($G$3:$R$3,SUMPRODUCT(($G$4:$R$24=$B6)*COLUMN($G$3:$R$3))-COLUMN($G$3)+1)

+ 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. Hello from italy
    By Perry89 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 03-08-2019, 10:24 AM
  2. Hello from Italy :-)
    By andreaferrari89 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 06-05-2018, 03:33 AM
  3. Hello from Italy!
    By fernando112 in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 03-25-2014, 03:35 PM
  4. Hello from Italy
    By afdent64 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 12-02-2013, 07:56 PM
  5. Hi everybody from Italy
    By dukem in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 06-03-2013, 12:22 PM
  6. Greetings from Italy
    By Lalla in forum Hello..Introduce yourself
    Replies: 4
    Last Post: 06-01-2013, 01:15 PM
  7. Hi from Italy
    By Ekant in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-27-2012, 11:18 AM

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