+ Reply to Thread
Results 1 to 6 of 6

Formula to rank in two ways

  1. #1
    Registered User
    Join Date
    12-21-2022
    Location
    Belgium
    MS-Off Ver
    2016
    Posts
    14

    Formula to rank in two ways

    For a tiebreaker question on a quiz, I need a formula that does the following:
    - First, create a ranking based on the column total score
    - In case of a tie in previous, the team closest to the answer to the tiebreaker question should come first

    So I thought to work with a rank formula first and supplement it with a rank formula where (correct answer - their answer to the tiebreaker question) should be as close to zero as possible.
    But I still didn't find the correct formula. Can anyone help me?

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Formula to rank in two ways

    rank, countif(s) or sumproduct may help
    Attach a sample sheet.
    Quang PT

  3. #3
    Registered User
    Join Date
    12-21-2022
    Location
    Belgium
    MS-Off Ver
    2016
    Posts
    14

    Re: Formula to rank in two ways

    Here the file
    Quiz Scoreblad Editie II.xlsx

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Formula to rank in two ways

    USe SUMPRODUCT() to count how many rows:

    1) Total>current Total
    If there are more than dupplicated same total, then next

    2) Column (D-D1)/1000> current (D-D1)/1000

    For example: row 3 and row 28, with same Total = 72
    Row 3: current value = total - ABS(D-D1)/1000 = 72 - ABS(256-300) = 72 -0.044 = 71.956
    Row 28: current value = total - ABS(D-D1)/1000 = 72 - ABS(576-300) = 72 -0.276 = 71.724
    Now, there is only 1 row >= row 3, then row3 = 1
    Now, there are 2 rows >= row 28, then row 28 = 2

    That is how SUMPRODUCT works.

    In P3:
    Please Login or Register  to view this content.
    drag down
    Attached Files Attached Files

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

    Re: Formula to rank in two ways

    Delete delete
    Last edited by josephteh; 03-03-2023 at 07:27 AM.

  6. #6
    Registered User
    Join Date
    12-21-2022
    Location
    Belgium
    MS-Off Ver
    2016
    Posts
    14

    Re: Formula to rank in two ways

    This gives the reverse answer... Now the Tiebreaker question decides who will win

+ 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. Replies: 2
    Last Post: 08-01-2017, 05:49 PM
  2. Replies: 3
    Last Post: 02-08-2016, 06:55 PM
  3. [SOLVED] forcing a rank on 1 through 5 (no dups) using the rank formula in Excel
    By denver1717 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-22-2015, 08:28 AM
  4. [SOLVED] RANK formula cannot rank duplicates
    By unpluggedmusic in forum Excel General
    Replies: 5
    Last Post: 10-13-2012, 12:59 PM
  5. Formula to Rank and populate values base don Rank
    By Excel Dumbo in forum Excel General
    Replies: 3
    Last Post: 10-09-2012, 02:02 AM
  6. Alternate ways to Rank?
    By neil40 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-10-2011, 10:15 AM
  7. Formula Reference Row To Column, Scroll Ways!
    By rr1050 in forum Excel General
    Replies: 4
    Last Post: 01-05-2009, 07:54 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