+ Reply to Thread
Results 1 to 7 of 7

Ranking with SUMPRODUCT

  1. #1
    Registered User
    Join Date
    02-13-2020
    Location
    Sao Paulo
    MS-Off Ver
    2016 (macOS)
    Posts
    12

    Ranking with SUMPRODUCT

    Hi!

    I'm trying to figure out how a "conditional ranking" is working on a spreadsheet that I'll attach to this thread. I want to learn/understand so I can apply this on different situations, the part that confuses me the most is the "*10^-6".

    Basically, there are two formulas on this spreadsheet:

    Ranking two criteria
    =SUMPRODUCT(--(($C$3:$C$5+$D$3:$D$5*10^-6)>C3+D3*10^-6))+1
    Captura de Tela 2021-12-26 ās 23.21.48.png

    Ranking three criteria
    =SUMPRODUCT(--(($C$10:$C$20+$D$10:$D$20*10^-3+$E$10:$E$20*10^-6)>C10+D10*10^-3+E10*10^-6))+1
    Captura de Tela 2021-12-26 ās 23.22.04.png

    Could anyone help understand this SUMPRODUCT?
    Attached Files Attached Files
    Last edited by Sakrammentum; 12-27-2021 at 06:23 AM. Reason: Added spreadsheet

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Ranking with SUMPRODUCT

    I tried to test a formula but couldn't get it to work on the pictures...
    Ben Van Johnson

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Ranking with SUMPRODUCT

    Pl read the yellow banner on top of this page.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Registered User
    Join Date
    02-13-2020
    Location
    Sao Paulo
    MS-Off Ver
    2016 (macOS)
    Posts
    12

    Re: Ranking with SUMPRODUCT

    I just noticed I selected the file but didn't click upload

    Spreadsheet uploaded, this might help with the answers.

  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,984

    Re: Ranking with SUMPRODUCT

    The first 5 values all tie, with a score of 1 (100%). Ties are broken with priority being assigned in the order: satisfaction, Surveys answered and (finally) Qs answered.

    The ties are resolved first by multiplying the No. of surveys answered by 1/1000 (10^-3) and adding that to the % scores; and secondly by multiplying the number of Q answered by 1/1,000,000 (10^-6) and adding that to the total of % and Survey No/1000. In that way an overall ranking score taking into account all 3 parameters is achieved. You just have to be a little careful with the 10^-3 and 10^-6 to ensure that the 3rd parameter can not, on occasion, override the 2nd parameter...

    in the attached sheet, the 3rd priority parameter (Qs answered) has more weight than the 2nd priority parameter (surveys taken) and so the ranking order is thrown out. Changing the 10^-6 to 10^-9 fixes it again.
    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

  6. #6
    Registered User
    Join Date
    02-13-2020
    Location
    Sao Paulo
    MS-Off Ver
    2016 (macOS)
    Posts
    12
    Quote Originally Posted by Glenn Kennedy View Post
    The first 5 values all tie, with a score of 1 (100%). Ties are broken with priority being assigned in the order: satisfaction, Surveys answered and (finally) Qs answered.

    The ties are resolved first by multiplying the No. of surveys answered by 1/1000 (10^-3) and adding that to the % scores; and secondly by multiplying the number of Q answered by 1/1,000,000 (10^-6) and adding that to the total of % and Survey No/1000. In that way an overall ranking score taking into account all 3 parameters is achieved. You just have to be a little careful with the 10^-3 and 10^-6 to ensure that the 3rd parameter can not, on occasion, override the 2nd parameter...

    in the attached sheet, the 3rd priority parameter (Qs answered) has more weight than the 2nd priority parameter (surveys taken) and so the ranking order is thrown out. Changing the 10^-6 to 10^-9 fixes it again.
    Thank you!

  7. #7
    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,984

    Re: Ranking with SUMPRODUCT

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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 with RANK and SUMPRODUCT based on Two Value Columns
    By Newmord in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-28-2018, 03:01 PM
  2. [SOLVED] Ranking with Sumproduct Problem with #N/A
    By mbshafe in forum Excel General
    Replies: 4
    Last Post: 01-28-2016, 04:47 AM
  3. Sumproduct to calculate ranking And match right column
    By vascobmcastro in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-19-2015, 10:55 AM
  4. ranking with sumproduct or countifs with multiple criteria
    By cwchan220 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-13-2014, 04:12 PM
  5. Sumproduct ranking works on one column but not another
    By jenncess in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-05-2013, 02:21 PM
  6. [SOLVED] Ranking with sumproduct without duplicates
    By luke11111 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-27-2013, 02:37 PM
  7. Conditional ranking using the Sumproduct function
    By helium in forum Excel General
    Replies: 3
    Last Post: 07-04-2012, 08:26 PM

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