+ Reply to Thread
Results 1 to 5 of 5

Need to calculate median and mode similarly to how it could be done in a pivot table

  1. #1
    Registered User
    Join Date
    12-04-2014
    Location
    London, Ontario
    MS-Off Ver
    2011 Mac
    Posts
    2

    Need to calculate median and mode similarly to how it could be done in a pivot table

    Hello,

    I need to find a way to calculate multiple medians and modes from a large data set. I've attached a screenshotScreen Shot 2014-12-04 at 11.58.53 AM.png. All of the values needed for calculation are in one column (D=Mass) but need to be spilt based on their category from another column.

    In a separate column (B=Time), I have different time points at which each of my values were collected (sometimes I have hundreds of values for the same time point). Additionally, I'd like to go even further and separate that information by date (column A). Thus having a median and mode value for mass at each time point that is registerd per day.

    I can easily find the average masses at each time point within each day using pivot tables, but I want to compare the median and mode values for my data as well. Is there any way to accomplish this, possibly using an array+macro or something else? My datasets are very large (>100,000 entries) and separating things out will be too time consuming.

    Thanks,

    Cheese
    Attached Files Attached Files
    Last edited by cheddarcheese; 12-04-2014 at 01:23 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Need to calculate median and mode similarly to how it could be done in a pivot table

    People using IE can't see posted pictures because the forum is broken -- but even if that were not true, please post workbooks, not pictures.
    Last edited by shg; 12-04-2014 at 03:52 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-04-2014
    Location
    London, Ontario
    MS-Off Ver
    2011 Mac
    Posts
    2

    Re: Need to calculate median and mode similarly to how it could be done in a pivot table

    I've added an attachment of the partial workbook in a csv file, the whole thing was much too big to upload to the post...

    Cheers and thanks

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Need to calculate median and mode similarly to how it could be done in a pivot table

    Row\Col
    H
    I
    J
    1
    Band
    Mass Med
    2
    BBGS
    43.50
    I2: {=MEDIAN(IF($E$2:$E$995=H2, $D$2:$D$995))}
    3
    YYYS
    46.20
    4
    RRRS
    47.40

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Need to calculate median and mode similarly to how it could be done in a pivot table

    You say that you want a comparison between the MEDIAN and MODE for your data. This workbook has the MEDIAN and MODE for the BAND / MASS with a count of each.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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] Calculate Mode, Median and Average based on data in 3 columns
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2014, 05:56 PM
  2. Calculate Median using Pivot
    By sarinky in forum Excel General
    Replies: 1
    Last Post: 03-13-2012, 06:51 AM
  3. Replies: 2
    Last Post: 08-23-2007, 03:07 AM
  4. How can I put the median on a pivot table?
    By JAH in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-22-2005, 03:05 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