+ Reply to Thread
Results 1 to 2 of 2

Trimmean in Pivot Table

  1. #1
    Registered User
    Join Date
    12-23-2011
    Location
    raleigh
    MS-Off Ver
    Excel 2007
    Posts
    7

    Trimmean in Pivot Table

    *** See attached excel file ***
    I have a pivot table with four 'Row' categories and one 'Value' category.
    Row categories are Variety - Region - Location - Field Type
    Value category is Harvest Yield

    I would like to apply the TRIMMEAN formula to remove the highest 25% and lowest 25% and report the remaining average for each Harvest Yield value in the pivot table.

    I could manually double click on each Harvest Yield value, opening up a new worksheet containing the data that made value, apply TRIMMEAN formula, copy and paste into a new column on pivot table. However, I would like a more dynamic solution, so I could remove or reorder 'Row Categories' (Variety, Region, etc) and still have TRIMMEAN function reported in results.

    Thank you so much for your help folks
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-23-2011
    Location
    raleigh
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Trimmean in Pivot Table

    I asked a friend and he told me to use the following which worked like a charm. Thanks Joe Joe.


    Name a cell "TrimAmnt" and enter a value into the cell i.e. 0.25
    *the value of cell can be changed to alter amount to be cut off each tail of data*

    Turn RAW DATA into a Table

    Make new column (Tmean) in RAW DATA and apply the following array to first cell then press (Ctrl + Shift + Enter) to apply the formula into every cell in column:
    =TRIMMEAN(IF([REGONAL AREA]=[@[REGONAL AREA]],IF([LOCATION NUMBER]=[@[LOCATION NUMBER]],IF([VARIETY]=[@VARIETY],IF([FIELDTYPE]=[@FIELDTYPE],[HARVYIELD])))),TrimAmnt)

    Make a new pivot table and set the Tmean column to MAX or MIN.
    Last edited by botanybob; 11-11-2014 at 11:07 AM.

+ 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. TrimMean of Pivot Table data sets
    By olagaton in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 09-04-2013, 09:10 AM
  2. [SOLVED] Using TRIMMEAN on a selection of data
    By Krogerstrom in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-05-2013, 06:50 AM
  3. [SOLVED] TRIMMEAN & OFFSET together
    By JTM1200 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-11-2012, 05:23 PM
  4. Can i use trimmean in pivot tables
    By drooks in forum Excel General
    Replies: 1
    Last Post: 10-23-2008, 11:22 AM
  5. [SOLVED] TRIMMEAN with different percentiles?
    By agbiggs@hotmail.com in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-14-2006, 01:15 PM

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