+ Reply to Thread
Results 1 to 5 of 5

Using TRIMMEAN on a selection of data

  1. #1
    Registered User
    Join Date
    08-05-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    4

    Post Using TRIMMEAN on a selection of data

    Hi

    I am trying to devise a formula that allows me to calculate TRIMMEAN into a summary table provided the year of sale and product code definitions are met.

    In the sheet 'Data', the year of sale is contained in column G, the product code is contained in column A, and the data to be trimmed is in column I.

    In the summary table, column A contains the year reference and row 1 contains the product code.

    Below is my failed attempt.

    =TRIMMEAN(IF(AND(data!$G$2:$G$708=$A2,data!$A$2:$A$708=B$1),data!$I$2:$I$708),0.2)

    Any ideas of how to do this gratefully received!

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using TRIMMEAN on a selection of data

    For quicker and better help on your question, read the link below.

    http://www.excelforum.com/the-water-...-question.html

    Reading your story i think i should solve that with pivot table.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    292

    Re: Using TRIMMEAN on a selection of data

    Hi & welcome to the forum

    i would request you to pls post small sample of your workbook, to understand your requirement & output clearly

    pls remove all sensitive data before posting your workbook

    Thanks,
    A
    Click on * below if you find this helpful

    Thanks,
    A

  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: Using TRIMMEAN on a selection of data

    Hi,

    Difficult to confirm without seeing a sheet, but your formula will in any case fail on principle as you are attempting to pass arrays into a non-array formula.

    As an example of what I mean, a formula such as IF(data!$G$2:$G$708=$A2..., if non array-entered, will not, as you would hope, test whether all cells in the range data!G2:G708 are equal to A2, but simply test this condition on the first element of that array, i.e. whether data!G2=A2.

    In light of this (and again, I can't be sure as you were not kind enough to post a sample sheet), perhaps this array formula (confirm with CTRL+SHIFT+ENTER, not just ENTER):

    =TRIMMEAN(IF((data!$G$2:$G$708=$A2)*(data!$A$2:$A$708=B$1),data!$I$2:$I$708),0.2)

    Regards
    Click * below if this answer helped

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

  5. #5
    Registered User
    Join Date
    08-05-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Using TRIMMEAN on a selection of data

    Hi

    My apologies for not posting the workbook. Lesson learned.

    Many thanks for the responses - the solution posted by XOR LX fixed it. Thanks!

+ 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] TRIMMEAN & OFFSET together
    By JTM1200 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-11-2012, 05:23 PM
  2. trimmean last 6 of variable (by column) entries
    By pay2play in forum Excel General
    Replies: 2
    Last Post: 12-07-2008, 10:38 PM
  3. Can i use trimmean in pivot tables
    By drooks in forum Excel General
    Replies: 1
    Last Post: 10-23-2008, 11:22 AM
  4. [SOLVED] TRIMMEAN with different percentiles?
    By agbiggs@hotmail.com in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-14-2006, 01:15 PM
  5. [SOLVED] Trimmean for limited array
    By Sige in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2006, 12:30 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