+ Reply to Thread
Results 1 to 6 of 6

TrimMean of Pivot Table data sets

  1. #1
    Registered User
    Join Date
    09-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    9

    TrimMean of Pivot Table data sets

    I'm extremely new to this forum, so forgive me for putting this in the wrong section.

    I have uploaded my Excel Worksheet, so here is a breakdown of what I am trying to do:

    In the Final Tally worksheet, I would like B2 to look for Jeff in my Pivot Table, pull the Burger data set for all weeks in Jan and Feb (B7-K7), and create a 30% Trimmean of the data. Then in B3, do the same thing for Joe, and B4 for John. I would also like the Final Tally to calculate while allowing expansion on the Pivot Table (Mar, Apr, May, etc.)

    I hope I explained that correctly.

    I have tried VLOOKUP. I have tried GETPIVOTDATA. I just can't seem to get what I need, while also allowing the columns to grow going forward.

    Any help with this would be greatly appreciated. Thank you in advance.
    Attached Files Attached Files
    Last edited by olagaton; 09-01-2013 at 08:58 PM.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: TrimMean of Pivot Table data sets

    Hi,

    You can obtain these results directly from the source data, rather than from the pivot.

    In B2 enter this array formula and copy across and down as required:

    =TRIMMEAN(IF('Pivot Source'!$A$2:$A$31='Final Tally'!$A2,INDEX('Pivot Source'!$A$2:$F$31,,MATCH('Final Tally'!B$1,'Pivot Source'!$A$1:$F$1,0))),0.3)

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    09-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: TrimMean of Pivot Table data sets

    Quote Originally Posted by XOR LX View Post
    Hi,

    You can obtain these results directly from the source data, rather than from the pivot.

    In B2 enter this array formula and copy across and down as required:

    =TRIMMEAN(IF('Pivot Source'!$A$2:$A$31='Final Tally'!$A2,INDEX('Pivot Source'!$A$2:$F$31,,MATCH('Final Tally'!B$1,'Pivot Source'!$A$1:$F$1,0))),0.3)

    Regards
    Thank you for your response, I really appreciate the assistance. However, the formula you posted seems to work for Jeff, but not for Joe and John, as their result only comes out to 0, because the IF statement counts them as false.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: TrimMean of Pivot Table data sets

    This sounds like you somehow missed the large, emboldened array part of my original post. I trust you know how to enter these type of formulas in Excel?

    Regards

  5. #5
    Registered User
    Join Date
    09-01-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: TrimMean of Pivot Table data sets

    Again, thank you for the response. I noticed the Array, but did not know the implication of it, nor did I know how to create it. After a little more research, it is working as you stated. Thank you!!

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: TrimMean of Pivot Table data sets

    You're welcome.

+ 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] Using TRIMMEAN on a selection of data
    By Krogerstrom in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-05-2013, 06:50 AM
  2. Linking multiple pivot table filters that are from different data sets
    By jph89 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-23-2012, 07:04 PM
  3. Replies: 2
    Last Post: 05-21-2012, 10:56 AM
  4. Conditional Formatting W/Icon Sets in Analysis Services Pivot Table
    By puffster in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-13-2011, 03:49 PM
  5. Can i use trimmean in pivot tables
    By drooks in forum Excel General
    Replies: 1
    Last Post: 10-23-2008, 11:22 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