+ Reply to Thread
Results 1 to 8 of 8

Ranking based on two columns

  1. #1
    Registered User
    Join Date
    07-31-2024
    Location
    usa
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2405 Build 16.0.17628.20006) 64-bit
    Posts
    5

    Exclamation Ranking based on two columns

    Sheet 1 I need ranking between the two columns, Rank 1 would be the highest ave cube based on highest ave items
    Sheet 2 I need ranking between the two columns, Rank 1 would be the highest ave rating based on the lowest ave items
    Thanks!Wwar.xlsx
    Last edited by wwar; 07-31-2024 at 05:34 PM. Reason: Fixed formatting on feedback

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,102

    Re: Ranking based on two columns

    Please update your profile with the version of Excel you are using.

    Hi and welcome to the forum

    Pictures are of little value. Honestly, no one wants to re-type your data to try and solve your issue. Additionally, we would only be guessing at how your data was structured, ie. formulas, formatting, etc. Additionally, due to how some browsers behave, many of our members cannot see uploaded pictures/images. Please do not take this route.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and an "After" of what you wish the output to be.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


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

    Re: Ranking based on two columns

    Try this spill formula:
    =XLOOKUP(A2:A1106*1000+B2:B1106/1000;SORT(A2:A1106*1000+B2:B1106/1000;;-1);SEQUENCE(ROWS(A2:A1106)))

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Ranking based on two columns

    Can be simplified to:
    =XMATCH(A2:A1106*1000+B2:B1106/1000;SORT(A2:A1106*1000+B2:B1106/1000;;-1);0)

  5. #5
    Registered User
    Join Date
    07-31-2024
    Location
    usa
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2405 Build 16.0.17628.20006) 64-bit
    Posts
    5

    Re: Ranking based on two columns

    Keep getting an error message when trying to input the formula. the error is shownScreenshot 2024-08-01 103905.pngScreenshot 2024-08-01 103905.png via screenshot

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,379

    Re: Ranking based on two columns

    Change all semi-colons to commas.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    07-31-2024
    Location
    usa
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2405 Build 16.0.17628.20006) 64-bit
    Posts
    5

    Re: Ranking based on two columns

    This formula looks like the weight of the cube far outstrips the weight of the sales. A 80/20 weight is preferred when comparing items(sales) to the cubic area. First rank should show the highest cubic by vs items sale at a ratio of 80/20(sales/cubic) any suggestions?

  8. #8
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Ranking based on two columns

    The weightage you give will severely affect the ranking when # of items is significantly higher than cubic.

    Screenshot 2024-08-02 091128.png
    Attached Files Attached Files

+ 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] Ranking based on 3 columns (values)
    By jendan in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-25-2024, 12:06 AM
  2. [SOLVED] Formula to get a ranking based on three columns
    By hostmd in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-14-2024, 11:04 AM
  3. Excel ranking based on two columns
    By carwardinet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2021, 09:33 AM
  4. [SOLVED] Ranking based on two columns
    By kabnt2005 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-12-2016, 08:41 AM
  5. Ranking based on two columns
    By leo73pk in forum Excel General
    Replies: 6
    Last Post: 01-01-2011, 12:47 PM
  6. Ranking based on two columns
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-21-2006, 02:21 PM
  7. Ranking based on two columns
    By sa02000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2006, 01:10 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