+ Reply to Thread
Results 1 to 6 of 6

Conditoinal median calculation for a series

  1. #1
    Forum Contributor
    Join Date
    11-24-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    225

    Conditoinal median calculation for a series

    Hi I would like to calculate median value for year 2000-2011 in cell B5808. I tried a formual but i do not why it gives no value or wrong value. I give you the manual answer in b5822 cell. Please help me.

    Thanks for continuous help.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-24-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    225

    Re: Conditoinal median calculation for a series

    This median calculation is based on industry type A column. For example median values for basic materials in year 2000 (manual answer given in B5822 CELL). I have also given my formula in B5808 which did not work.. Since there are some blank cells, it may impact the calculation.

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Conditoinal median calculation for a series

    {=MEDIAN((IF($A$2:$A$5797="Basic Materials",IF($D$2:$D$5797<>"",$D$2:$D$5797))))}

    Array formula are entered using the key combination of Alt + Shift + Enter
    Excel will automatically add the { } around the formula
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Forum Contributor
    Join Date
    11-24-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    225

    Re: Conditoinal median calculation for a series

    I do not why it does not work. It gives me #VALUE!. Can you please kindly provide me the excel sheet with the formula please.

  5. #5
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Conditoinal median calculation for a series

    When correctly entered, the formula works. It gave me the same result you showed for the manual calculation.

    You must make absolutely sure to two things when entering array formula:
    1. *ALL* ranges must be exactly the same size (you had an error in your workbook - mistmatched range sizes)
    2. You must enter the array formula using Alt+Shift+Enter

  6. #6
    Forum Contributor
    Join Date
    11-24-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    225

    Re: Conditoinal median calculation for a series

    Thank you very much. It did not work because my values are in text format. Now it is working. Thanks for help.

+ 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