+ Reply to Thread
Results 1 to 8 of 8

Trimmed mean for grouped data

Hybrid View

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

    Re: Trimmed mean for grouped data

    Quote Originally Posted by Duarte_RV View Post
    I have a dataset that looks like this but with 800,00 rows
    [....]
    I want to calculate the average time per each postcode but, as there are some outliers, I need the trimmed mean. I know how to use the =TRIMMEAN formula, but I don't know how to group per postcode and then calculate the trimmed mean. [....]

    I would also need to add some more levels of complexity, like calculating the trimmed mean for a specific postcode in a specific month.
    First, your table is not helpful because it does not include actual Excel row and column labels (1, 2 etc; and A, B etc). It is better to attach an example Excel file.

    Second, TRIMMEAN does not remove outliers per se. Instead, it arbitrarily removes "p" percent of the data (the first and last p/2 percent), where "p" is the percentage specified in the second parameter. Also beware of how TRIMMEAN rounds the number of data to exclude. See the TRIMMEAN help page for details.

    If you want to know about outliers, I could explain further.

    But if you insist on using TRIMMEAN, conceptually you might array-enter something like this (press ctrl+shift+Enter instead of just Enter):

    =TRIMMEAN(IF(D2:D80001="CB1",IF(B2:B80001=1,F2:F80001)), 1%)

    to remove 800 data points (80000*1%), the first and last 400 data points, from the January data (month 1) with postal code "CB1".
    Last edited by joeu2004; 02-23-2015 at 02:29 PM.

+ 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. Trim and Keep the Trimmed Data
    By N Harkawat in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2005, 06:05 PM
  2. Trim and Keep the Trimmed Data
    By sally t in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  3. Trim and Keep the Trimmed Data
    By sally t in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. [SOLVED] Trim and Keep the Trimmed Data
    By sally t in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  5. [SOLVED] Trim and Keep the Trimmed Data
    By sally t in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10: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