+ Reply to Thread
Results 1 to 3 of 3

MEDIAN Function

  1. #1
    Forum Contributor
    Join Date
    04-16-2020
    Location
    Tehran, Iran
    MS-Off Ver
    2019 v2306
    Posts
    145

    MEDIAN Function

    Hello, I have a question about MEDIAN Function :
    A1 = 1500 , B1 = 1000 , C1 = 2000
    I need Formula for check A1 if between B1 & C1 "NOT >= or <=" then show "TRUE" , if not show "FALSE"
    for that formula : =IF(A1=MEDIAN(B1:C1),"TRUE","FALSE") .... works fine shows "TRUE"
    but look at this one :
    A1 = 1.12812 , B1 = 1.12755 , C1 = 1.15487
    if A1 is between B1 & C1 then show me "TRUE" if not show "FALSE"
    so with above Formula : =IF(A1=MEDIAN(B1:C1),"TRUE","FALSE") shows "FALSE"
    I don't understand that reason

    I would be grateful if you could help
    Last edited by soubasa; 04-16-2020 at 03:20 PM.

  2. #2
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: MEDIAN Function

    You need to include A1 in the MEDIAN parameters. The first example worked only by coincidence. I would write:

    =MEDIAN(A1:C1)=A1

    if you want to return logical values TRUE and FALSE, not strings.

    Or more generally:

    =MEDIAN(B1,A1,C1)=A1

    I prefer the latter because it shows our intent more clearly, to wit: A1 is literally "between" B1 and C1.

    It also does not presume that A1, B1 and C1 are in contiguous cells.

    FYI, this use of MEDIAN works for its purpose ("between") only when there are exactly 3 values to consider. Thus, the value in A1 is literally greater than 50% and less than 50% of the remaining data (the definition of the median value), if it is indeed between the values in B1 and C1.
    Last edited by joeu2004; 04-16-2020 at 12:26 PM.

  3. #3
    Forum Contributor
    Join Date
    04-16-2020
    Location
    Tehran, Iran
    MS-Off Ver
    2019 v2306
    Posts
    145

    Re: MEDIAN Function

    =MEDIAN(B1,A1,C1)=A1 .... it works very well
    Thank You very much

+ 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. [SOLVED] Median if function
    By tis1337 in forum Excel General
    Replies: 5
    Last Post: 04-30-2016, 08:13 AM
  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. Using Median with a look up function
    By rgold in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-08-2008, 02:37 AM
  4. Median Function Help
    By couger77 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-25-2007, 04:47 PM
  5. median function
    By flyingmeatball in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-17-2006, 11:40 AM
  6. Median function
    By pamanaf in forum Excel General
    Replies: 1
    Last Post: 08-10-2005, 10:05 AM

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