+ Reply to Thread
Results 1 to 7 of 7

AverageIFS, only filtered data

  1. #1
    Registered User
    Join Date
    04-02-2020
    Location
    Indiana, USA
    MS-Off Ver
    2016
    Posts
    3

    AverageIFS, only filtered data

    So I have my AverageIFS function working correctly, but now I need the values to update as I filter data.
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,630

    Re: AverageIFS, only filtered data

    Hi and welcome
    there is anice example at http://www.exceluser.com/excel_help/...-aggregate.htm using the AGGREGATE function

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,279

    Re: AverageIFS, only filtered data

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This is example as per your data


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: AverageIFS, only filtered data

    I put a helper column in Column CG
    CG2 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I chose CF because it seems to have a value for every row. If there is a better column for that, choose that one.
    This formula will show a 1 when the row is unfiltered and 0 when it is filtered out (hidden)
    Then modify your AVERAGEIFS to include this column. For example BW21
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    04-02-2020
    Location
    Indiana, USA
    MS-Off Ver
    2016
    Posts
    3

    Re: AverageIFS, only filtered data

    Thanks for the replies!

    Couple items; Chemist

    1. I don't understand how your fix works. Do I need to apply this to each column or am I to reference only the new column you added?
    1. My original data set will have 1000's of rows, there will be no single column with "perfect" data. Will this still work?
    2. When I filter, my "total" row disappears.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: AverageIFS, only filtered data

    1. Re Filtering: Clear the current filter and just select your data without the totals and reactivate the filter. It won't include the totals then.

    2. You just need to refer to column CG in your AverageIFs. If there is no specific column that will have data in it, modify CG2 copied down to
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-02-2020
    Location
    Indiana, USA
    MS-Off Ver
    2016
    Posts
    3

    Re: AverageIFS, only filtered data

    Holy crap it works! Thanks a ton. You have no idea how much time this will save me.

+ 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. Copy filtered data into filtered range in a separate sheet
    By vikas.trades25 in forum Excel General
    Replies: 1
    Last Post: 02-07-2019, 04:04 AM
  2. Pasting filtered data back into filtered data
    By pigment01 in forum Excel General
    Replies: 1
    Last Post: 10-18-2017, 11:54 AM
  3. Cell reference to filtered data auto update as Filtered result changes
    By Irajoo in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-22-2017, 02:17 AM
  4. [SOLVED] AVerageifs a range of data
    By kent97 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-05-2016, 06:08 AM
  5. DIVERROR for averageifs on data from 2 sheets
    By damonjasso in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-15-2015, 02:51 PM
  6. Replies: 3
    Last Post: 11-04-2013, 07:50 PM
  7. Replies: 4
    Last Post: 09-04-2012, 06:09 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