+ Reply to Thread
Results 1 to 6 of 6

Median Function Help

  1. #1
    Registered User
    Join Date
    12-29-2003
    Posts
    33

    Median Function Help

    Please Login or Register  to view this content.


    Thanks for your help all!

    Jeremy

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this in Sheet1 cell B2

    =MEDIAN(IF(Sheet2!$A$2:$A$9=A2,Sheet2!$B$2:$B$9)) enter as an array, Ctrl+Shift+Enter and copy down
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    12-29-2003
    Posts
    33
    It appears to be working for that sample. However, when I apply it to my actual file, it does not work. It gives a #N/A if the column is longer than the values ie: $B$2:$B$100. Basically if there is no data it errors.

    Does that make sense?

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this,

    =MEDIAN(IF(Sheet2!$A$2:$A$9=A3,IF(Sheet2!$A$2:$B$9<>"",Sheet2!$B$2:$B$9)))

  5. #5
    Registered User
    Join Date
    12-29-2003
    Posts
    33
    Quote Originally Posted by oldchippy
    Try this,

    =MEDIAN(IF(Sheet2!$A$2:$A$9=A3,IF(Sheet2!$A$2:$B$9<>"",Sheet2!$B$2:$B$9)))

    Hey I think that worked! Thank you very much for lending your expertise.

    Couger77

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Only trying to help - thanks for the feedback

+ 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