+ Reply to Thread
Results 1 to 6 of 6

trying to get a vlookup(median) that ignores zeros

Hybrid View

  1. #1
    Registered User
    Join Date
    07-02-2012
    Location
    South Korea
    MS-Off Ver
    Excel 2010
    Posts
    30

    trying to get a vlookup(median) that ignores zeros

    I have already found the median value of a range of numbers with zeros using

    =MEDIAN(IF(U12:U31<>0,U12:U31))

    but I need a vlookup formula to match a name to the median number.

    I've tried =VLOOKUP(MEDIAN(AB12:AB31),AB12:AC31,2,) but it doesn't work

    Can anyone help me?

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: trying to get a vlookup(median) that ignores zeros

    why do you show {=MEDIAN(IF(U12:U31<>0,U12:U31))}
    then use MEDIAN(AB12:AB31) in the vlookup
    also there is a fair chance the median will be 4.5 or such and if you have a list of integers it wont find a match.
    Last edited by martindwilson; 07-05-2012 at 08:33 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    07-02-2012
    Location
    South Korea
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: trying to get a vlookup(median) that ignores zeros

    I'm only discovering vlookup so I'm not sure what exactly you are saying.

    If there are zeros in a list of numbers, can i just use the normal =median(A1:A10) formula?

    And if i do, would the lookup formula be "=vlookup(MEDIAN(A1:A10),A1:B10,2)" ?

    I'm confused!

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: trying to get a vlookup(median) that ignores zeros

    i dont know only you can answer that why you are using median i dont know
    but lets assume you are using either version this is what happens
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-02-2012
    Location
    South Korea
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: trying to get a vlookup(median) that ignores zeros

    Thanks... Now I understand why I am getting the #N/A sign.

    So if I don' use median, how can I find a number that actually in the range of numbers whih is closest to the median?

  6. #6
    Registered User
    Join Date
    07-02-2012
    Location
    South Korea
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: trying to get a vlookup(median) that ignores zeros

    Sorry! I don;t pay close enough attention to what you wrote in the attachment. You actually told me how to do it using an ascending list.

+ 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