+ Reply to Thread
Results 1 to 3 of 3

Averaging Filtered Columns while ignoring zero

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Averaging Filtered Columns while ignoring zero

    At the bottom of the Table I am trying to Average the columns. But I would like to ignore the zeros as well and I need this to work when filtering.

    So basically I would like to combine these two formulas to get what I want.

    =SUBTOTAL(101,[Column 13])

    =AVERAGE(IF(L6:L94>0,L6:L94))

    Thank you!

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Averaging Filtered Columns while ignoring zero

    Try this Array Formula, with CTRL+SHIFT+ENTER

    =AVERAGE(IF(SUBTOTAL(2,OFFSET(L6,ROW(L6:L94)-ROW(L6),)),IF(L6:L94>0,L6:L94)))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Averaging Filtered Columns while ignoring zero

    try using =averageif() or =averageifS()
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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