+ Reply to Thread
Results 1 to 2 of 2

Calculate an average based on criteria. Exclude some rows.

  1. #1
    Registered User
    Join Date
    08-13-2015
    Location
    Virginia
    MS-Off Ver
    2013
    Posts
    1

    Calculate an average based on criteria. Exclude some rows.

    I would like to calculate an average for a specific region excluding the current row.
    For example, if I have the following table:
    Store Units Sold Region
    A 25 East
    B 30 East
    C 33 East
    D 31 West
    E 27 West
    F 37 West





    I would like to find that the "Remainder of Region Average" for store A is 31.5 (average of stores B and C)
    Similarly, I would like to find that the "Remainder of Region Average" for store B is 29 (average of A and C)
    etc...

    I would want my results to look like this:

    Store Units Sold Region RemainAvg
    A 25 East 31.5
    B 30 East 29
    C 33 East 27.5
    D 31 West 32
    E 27 West 34
    F 37 West 29

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Calculate an average based on criteria. Exclude some rows.

    Hi,

    Assuming your table starts at cell A1,

    =AVERAGEIFS($B$2:$B$7,$C$2:$C$7,C2,$A$2:$A$7,"<>"&A2)

    copied down should give the required result.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

+ 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 average and standard deviation for each year and exclude 0s
    By excelas88 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 05-01-2015, 05:37 PM
  2. Replies: 6
    Last Post: 11-25-2013, 08:35 PM
  3. [SOLVED] Calculate a weighted average in a single cell based on multiple criteria
    By _Bryan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-14-2013, 04:38 PM
  4. Replies: 10
    Last Post: 06-28-2012, 08:59 AM
  5. Calculate modified average based on criteria from other column
    By excelforum123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-18-2011, 12:04 PM
  6. Replies: 8
    Last Post: 03-21-2008, 12:09 PM
  7. [SOLVED] Calculate average based on date and other criteria
    By Kycajun in forum Excel General
    Replies: 3
    Last Post: 07-14-2006, 05:15 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