+ Reply to Thread
Results 1 to 3 of 3

Higher Rank Median Value Formula #2

  1. #1
    Registered User
    Join Date
    08-19-2014
    Location
    Bellevue, WA
    MS-Off Ver
    2010
    Posts
    8

    Higher Rank Median Value Formula #2

    Hi, I posted yesterday seeking the higher rank value of the median of an even numbered data set...

    (FROM PREVIOUS POST)

    2, 2, 6, 8, 8, 10 ---> The median value will technically be 7, but I am looking for a formula to spit out the 8 value instead, the higher rank data of the two values that make up the median; basically looking for a single formula that will pull the higher rank data value when there is an even amount of data and calculate the median value as ordinary when there is an odd amount of data.



    I was given to formulas below as examples..

    =IF(ISEVEN(COUNTA(A2:A7)),MIN(IF(MEDIAN(A2:A7)<=A2:A7,A2:A7)),MEDIAN(A2:A7))
    and
    =AVERAGE(LARGE(A1:A10,INDEX({0,1;1,1},1+ISODD(COUNT(A1:A10)),)+COUNT(A1:A10)/2))

    Both worked great. Now I am looking for this same concept across a bigger range of data associated with different ID's..

    EXAMPLE -->

    Capture.PNG


    The true median for ID:A with values 1, 2, 5, 8 will be 3.5 --> But I am looking for the value 5
    The true median for ID:B with values 3, 4, 6, 7 will be 5 --> But I am looking for the value 6

    I have the formulas above as well as one to pull a median for the an odd numbered data set (below) and am seeking an equation to combine the equations to give me a single formula if possible!

    ={MEDIAN(IF(idrange=A, values)) --> takes the median of the values associated with ID A.

    Help on combining the two equations appropriately would be tremendous!! Thank you in advance to anyone offering input!

    NOTE: the data is not in ascending order and need the equation to work without having to sort the data by ID if possible!

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Higher Rank Median Value Formula #2

    Hi again,

    Rather that a picture, could you post an actual workbook?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    08-19-2014
    Location
    Bellevue, WA
    MS-Off Ver
    2010
    Posts
    8

    Re: Higher Rank Median Value Formula #2

    EXAMPLE.xlsx

    Here is the excel sheet.

+ 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. Higher Rank Median Value Formula??
    By j.petrut in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-19-2014, 07:18 PM
  2. Median Indirect: Find median in range and bring back adjacent cells
    By Keelin in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-27-2014, 08:31 AM
  3. 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
  4. Excel 2007 : Using median and rank functions together
    By songbird39 in forum Excel General
    Replies: 2
    Last Post: 04-03-2012, 12:56 PM
  5. Replies: 7
    Last Post: 03-22-2010, 05:22 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