+ Reply to Thread
Results 1 to 4 of 4

Weighted rank- if duplicates rank the average

  1. #1
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Weighted rank- if duplicates rank the average

    Hello

    I have some difficulties on what function to use..
    I'm ranking some data entry but if duplicates get the average and that will be the weighted rank of the 2 data.
    To further explain, I've attached a sample worksheet.

    Thanks in advance.

    weighted rank.xlsx
    Last edited by vlady; 02-28-2012 at 09:17 PM.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Weighted rank- if duplicates rank the average

    You can use this array* formula in B4:

    =IF(COUNTIF(A$4:A$17,A4)=1,RANK(A4,A$4:A$17,1),AVERAGE(IF(A$4:A$17=A4,ROW(A$4:A$17)-3)))

    and copy it down to B17.

    * An array formula must be committed using the key combination of CTRL-SHIFT-ENTER (CSE) instead of the usual <Enter>.

    Hope this helps.

    Pete

    EDIT: Sorry, slight amendment to the formula:

    =IF(COUNTIF(A$4:A$17,A4)=1,ROW(A4)-3,AVERAGE(IF(A$4:A$17=A4,ROW(A$4:A$17)-3)))

    still use CSE to commit it.

    Pete
    Last edited by Pete_UK; 02-28-2012 at 08:35 PM.

  3. #3
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Weighted rank- if duplicates rank the average

    Hey, that was fast thanks.

    A little adjustment in the ranges and i'm good to go.
    And it works like a charm

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Weighted rank- if duplicates rank the average

    Presumably you could just use the AVERAGE part alone, i.e.

    =AVERAGE(IF(A$4:A$17=A4,ROW(A$4:A$17)-3))
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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