+ Reply to Thread
Results 1 to 2 of 2

Help with Median, of multiple tabs, excluding zero's

  1. #1
    Registered User
    Join Date
    05-13-2015
    Location
    Leiden
    MS-Off Ver
    2010
    Posts
    2

    Help with Median, of multiple tabs, excluding zero's

    Dear All,

    Using office 2010, i ran into a problem when i wanted to calculate the median of one cell (C13) on different tabs but exclude all the zero's.

    I first tried the formula "{=Median(IF(Sheet1!C13;Sheet2!C13;...Sheet28!C<>0;Sheet1!C13;Sheet2!C13;...Sheet28!C))}"
    but got the error "to many arguments for this function" i assume this is due to the ";" separating the arguments in the IF(...) part of the formula

    I then tried the formula "{=Median(IF(Sheet1:Sheet28!C13<>0;Sheet1:Sheet28!C13))}" but got the error #REF!. I assume this is due to the fact that "Sheet1:Sheet24!C13" is not a valid reference. I tried to find an alternative but did not succeed and i am afraid this is due to the fact that the IF() formula may not handle 3-D references.

    A third attempt was with this formula
    "{=MEDIAN(IF({"AT";"BE";"BG";"HR";"CY";"CZ";"DK";"EE";"FI";"FR";"DE";"GR";"HU";"IE";"IT";"LV";"LT";"LU";"MT";"NL";"PL";"PT";"RO";"SK";"SI";"ES";"SE";"UK"}&"!D13">0;{"AT";"BE";"BG";"HR";"CY";"CZ";"DK";"EE";"FI";"FR";"DE";"GR";"HU";"IE";"IT";"LV";"LT";"LU";"MT";"NL";"PL";"PT";"RO";"SK";"SI";"ES";"SE";"UK"}&"!D13"))}"
    But that failed as wel as i got the #NUM! error message, and i think the {"AT";"BE";"BG";"HR";"CY";"CZ";"DK";"EE";"FI";"FR";"DE";"GR";"HU";"IE";"IT";"LV";"LT";"LU";"MT";"NL";"PL";"PT";"RO";"SK";"SI";"ES";"SE";"UK"}&"!D13" reference is not recognized as valid.

    I am not acquainted with User Defined Functions (UDF) but i think it is the only solution?

    Could you help me with finding a solution? Any help and advice is appreciated!

    I added an excel file including an example of my situation, the tap called median is where i want to see the median value. I inserted the formula i descripe above and it gives the #REF! error.

    Best, Ward
    Attached Files Attached Files
    Last edited by WardM90; 05-14-2015 at 07:48 AM.

  2. #2
    Registered User
    Join Date
    05-13-2015
    Location
    Leiden
    MS-Off Ver
    2010
    Posts
    2

    Re: Help with Median, of multiple tabs, excluding zero's

    I got 42 views so far but no answers, is my post incomplete, unclear, to short, rude, or does nobody knows the answer?

+ 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. Auto name tabs with dates excluding weekends and holidays
    By Eeyora in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-25-2013, 06:54 PM
  2. Excluding Cells in Median function
    By TAM77 in forum Excel General
    Replies: 9
    Last Post: 11-09-2011, 01:42 PM
  3. Median, excluding the value 0
    By Johnston81 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-09-2009, 08:36 AM
  4. Median - Excluding Zeros in a Range
    By Skoal in forum Excel General
    Replies: 2
    Last Post: 08-03-2007, 01:58 PM
  5. median excluding 0's
    By maryj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2006, 12:10 PM

Tags for this Thread

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