+ Reply to Thread
Results 1 to 8 of 8

Average Formula that averages certain cells based on how i filter.

  1. #1
    Forum Contributor
    Join Date
    12-18-2011
    Location
    long island
    MS-Off Ver
    365
    Posts
    236

    Average Formula that averages certain cells based on how i filter.

    Is there an average formula that will selectively average values depending on how i filter?
    Take the attached example sheet. It has ten rows of ten apples and 10 rows of 5 carrots. Averaged all together it is 7.5
    If i change the drop down list to only display apples, i would want the average to change to 10 and vice versa.Example sheet.xlsx

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Average Formula that averages certain cells based on how i filter.

    Try =AGGREGATE(1,1,D4:D24)

  3. #3
    Forum Contributor
    Join Date
    12-18-2011
    Location
    long island
    MS-Off Ver
    365
    Posts
    236

    Re: Average Formula that averages certain cells based on how i filter.

    Wow that did it, Thanks!
    i've never heard of the aggregate formula lol

  4. #4
    Forum Contributor
    Join Date
    12-18-2011
    Location
    long island
    MS-Off Ver
    365
    Posts
    236

    Re: Average Formula that averages certain cells based on how i filter.

    I want to do min and max too
    is there a formula that will work the same way?

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Average Formula that averages certain cells based on how i filter.

    Take a look at the intellisense of Aggregate (it can do several functions)

    Go in to edit the formula, and backspace to remove the first 1.
    You'll get a list of all the stuff it can do.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,887

    Re: Average Formula that averages certain cells based on how i filter.

    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  7. #7
    Forum Contributor
    Join Date
    12-18-2011
    Location
    long island
    MS-Off Ver
    365
    Posts
    236

    Re: Average Formula that averages certain cells based on how i filter.

    That's a cool formula
    Thank you!

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Average Formula that averages certain cells based on how i filter.

    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. Replies: 4
    Last Post: 03-13-2015, 05:34 AM
  2. Average Formula based on checkbox filter
    By gan_xl in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-12-2014, 10:44 AM
  3. Average formula that averages the last 6 filled cells of a range
    By Nikki0195 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2013, 02:14 PM
  4. Replies: 0
    Last Post: 01-22-2013, 12:22 PM
  5. Replies: 2
    Last Post: 11-06-2011, 08:16 PM
  6. Replies: 5
    Last Post: 10-24-2011, 10:11 AM
  7. Calculate Average based on sub averages
    By augie1971 in forum Excel General
    Replies: 2
    Last Post: 05-22-2008, 03:10 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