Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

How to get Median value from a data set

Discussion in 'Information Technology' started by Mike, Jul 28, 2006.

  1. Mike

    Mike
    Expand Collapse
    Guest

    All - I am trying to get Median value for my data set. My table has 3
    fields, FromState, ToState, and PerMileRate. What I want is the Median value
    of all rates that I have from one state to another state. For example, if I
    have rate from GA to DE of $1.00, $1.40, $1.60, and $2.00, I want to get
    Median value of $1.50.
     
  2. Loading...

    Similar Threads Forum Date
    Arts/Society Comedian Jaspal Bhatti dies in road accident in Punjab Language, Arts & Culture Oct 25, 2012
    Sikhism Guru Singh - Comedian Videos May 8, 2011
    General Narinder Singh - Comedian!! Videos Oct 23, 2009
    Sikh News Sikh comedian has the US in splits (The Times of India) Breaking News Feb 16, 2008
    Sikh Values Blogs Oct 21, 2015

  3. Mike Labosh

    Mike Labosh
    Expand Collapse
    Guest

    > All - I am trying to get Median value for my data set. My table has 3
    > fields, FromState, ToState, and PerMileRate. What I want is the Median
    > value
    > of all rates that I have from one state to another state. For example, if
    > I
    > have rate from GA to DE of $1.00, $1.40, $1.60, and $2.00, I want to get
    > Median value of $1.50.


    Access has a built in function that does that (or at least it used to). Be
    careful though -- there is an Avg() function that calculates the average of
    a set, but that's not the same thing as a Median.

    There IS a simple solution, I just can't remember the name of the function.
    Somebody help?
    --


    Peace & happy computing,

    Mike Labosh, MCSD MCT
    Owner, vbSensei.Com

    "Escriba coda ergo sum." -- vbSensei
     
  4. Douglas J. Steele

    Douglas J. Steele
    Expand Collapse
    Guest

    "Mike Labosh" <mlabosh_at_hotmail.com> wrote in message
    news:uf5QMh8jGHA.4884@TK2MSFTNGP03.phx.gbl...
    >> All - I am trying to get Median value for my data set. My table has 3
    >> fields, FromState, ToState, and PerMileRate. What I want is the Median
    >> value
    >> of all rates that I have from one state to another state. For example,
    >> if I
    >> have rate from GA to DE of $1.00, $1.40, $1.60, and $2.00, I want to get
    >> Median value of $1.50.

    >
    > Access has a built in function that does that (or at least it used to).
    > Be careful though -- there is an Avg() function that calculates the
    > average of a set, but that's not the same thing as a Median.
    >
    > There IS a simple solution, I just can't remember the name of the
    > function. Somebody help?


    AFAIK, there's no Median function in Access. However, I did write about how
    to calculate medians in my October, 2005 "Access Answers" column in Pinnacle
    Publication's "Smart Access". You can download the column (and sample
    database) for free from http://www.accessmvp.com/djsteele/SmartAccess.html

    --
    Doug Steele, Microsoft Access MVP
    http://I.Am/DougSteele
    (no private e-mails, please)
     

Share This Page