+ Reply to Thread
Results 1 to 5 of 5

"Median" and "SUM" ignoring filtered cells and errors...

  1. #1
    Registered User
    Join Date
    09-15-2019
    Location
    Los Angeles, CA
    MS-Off Ver
    2013
    Posts
    64

    "Median" and "SUM" ignoring filtered cells and errors...

    i use =AGGREGATE(12,1,C4:C1247) for median data results on filtered cells only. but i also have cells with errors. how do i change the formula to correct for both?

    CELL C3 is the cell in question



    and for total sum, i use =SUBTOTAL(9,C4:C13) for sum results, and it ignores filtered cells. but it wont ignore errors. how do i do that?
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: "Median" and "SUM" ignoring filtered cells and errors...

    For cell c3 try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and for cell C2 try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    They both worked at my end.
    Dave

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: "Median" and "SUM" ignoring filtered cells and errors...

    Sum:
    =aggregate(9,3,c4:c1427)

    median
    =aggregate(12,3,c4:c1427)
    Quang PT

  4. #4
    Registered User
    Join Date
    09-15-2019
    Location
    Los Angeles, CA
    MS-Off Ver
    2013
    Posts
    64

    Re: "Median" and "SUM" ignoring filtered cells and errors...

    thanks guys.

    interesting that
    =aggregate(9,3,c4:c1427) and
    =aggregate(9,7,c4:c1427)

    both yield the same results. why is this?

  5. #5
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,416

    Re: "Median" and "SUM" ignoring filtered cells and errors...

    Different between 3 and 7
    3. Ignore hidden rows, error values, nested SUBTOTAL and AGGREGATE functions
    7. Ignore hidden rows and error values

    AGGREGATE(function_num, options, ref1, [ref2], …)
    1. AVERAGE
    2. COUNT
    3. COUNTA
    4. MAX
    5. MIN
    6. PRODUCT
    7. STDEV.S
    8. STDEV.P
    9. SUM
    10. VAR.S
    11. VAR.P
    12. MEDIAN
    13. MODE.SNGL
    14. LARGE
    15. SMALL
    16. PERCENTILE.INC
    17. QUARTILE.INC
    18. PERCENTILE.EXC
    19. QUARTILE.EXC

    Options

    0. or omitted,Ignore nested SUBTOTAL and AGGREGATE functions
    1. Ignore hidden rows, nested SUBTOTAL and AGGREGATE functions
    2. Ignore error values, nested SUBTOTAL and AGGREGATE functions
    3. Ignore hidden rows, error values, nested SUBTOTAL and AGGREGATE functions
    4. Ignore nothing
    5. Ignore hidden rows
    6. Ignore error values
    7. Ignore hidden rows and error values
    Last edited by wk9128; 09-30-2020 at 09:50 PM.

+ 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: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  3. Master Summary sheet to "remember" formulae and not do "REF!" errors? (EXCEL 2003)
    By elizabethchilver in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2016, 07:08 PM
  4. Replies: 7
    Last Post: 09-12-2016, 09:43 AM
  5. Replies: 1
    Last Post: 02-20-2015, 01:13 PM
  6. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  7. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 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