+ Reply to Thread
Results 1 to 3 of 3

Averaging across multiple ranges, not counting zeros, and the [h]:mm format

  1. #1
    Registered User
    Join Date
    01-15-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    96

    Averaging across multiple ranges, not counting zeros, and the [h]:mm format

    I am trying to get an average time in [h]:mm across multiple ranges (see attached sheet for example).
    The B column is a result from another formula using an IFERROR function that results in a "-" if the result is #DIV/0!.

    The formula I am currently using is
    =SUM(B14,B22,B30,B38,B46)/COUNTIFS(B14,"<>0",B14,"<>#DIV/0!")+COUNTIFS(B22,"<>0",B22,"<>#DIV/0!")+COUNTIFS(B30,"<>0",B30,"<>#DIV/0!")+COUNTIFS(B38,"<>0",B38,"<>#DIV/0!")+COUNTIFS(B46,"<>0",B46,"<>#DIV/0!")
    ^^This is using just the average from each week, I have also used the range across all days (excluding the weekly average cell)

    I don't know what I am doing wrong, the result should be 87:32 as the overall monthly average, but I keep getting 325:39

    I appreciate any insight
    Attached Files Attached Files
    Last edited by Alphabex; 01-28-2016 at 03:44 PM.

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Averaging across multiple ranges, not counting zeros, and the [h]:mm format

    I haven't opened your spreadsheet, but I believe your problem is that your denominator is just COUNTIFS(B14,"<>0",B14,"<>#DIV/0!"), when you want it to be all of the COUNTIFS. You need to wrap the entire denominator with parentheses.
    =SUM(B14,B22,B30,B38,B46)/(COUNTIFS(B14,"<>0",B14,"<>#DIV/0!")+COUNTIFS(B22,"<>0",B22,"<>#DIV/0!")+COUNTIFS(B30,"<>0",B30,"<>#DIV/0!")+COUNTIFS(B38,"<>0",B38,"<>#DIV/0!")+COUNTIFS(B46,"<>0",B46,"<>#DIV/0!"))
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    01-15-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    96

    Re: Averaging across multiple ranges, not counting zeros, and the [h]:mm format

    Thank you Pauley....that was it! much appreciated

+ 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] Averageif, not counting zeros, but in multiple ranges)
    By Alphabex in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-08-2022, 01:38 PM
  2. Replies: 3
    Last Post: 06-21-2012, 08:36 AM
  3. Excel 2007 : Averaging Averages Whilst Ignoring Zeros
    By Jeff_Farrar in forum Excel General
    Replies: 2
    Last Post: 02-14-2011, 06:58 PM
  4. Replies: 9
    Last Post: 07-05-2010, 02:48 PM
  5. Averaging with zeros NOT
    By Tom in forum Excel General
    Replies: 5
    Last Post: 08-18-2005, 03:05 PM
  6. Replies: 1
    Last Post: 05-04-2005, 02:06 PM
  7. [SOLVED] Averaging, ignoring zeros
    By Mark in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-28-2005, 07:06 PM

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