+ Reply to Thread
Results 1 to 5 of 5

AverageIf across a range of sheets

  1. #1
    Registered User
    Join Date
    03-16-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    AverageIf across a range of sheets

    I am attempting to find the average of M6 across eight separate sheets. New sheets are frequently added so I'm doing the average of M6 between a range of sheets.

    I first attempted to do a basic average function with a range like so:

    Please Login or Register  to view this content.
    Only 3 of the 8 cells have a value, however; it is dividing by 8 instead of 3, thus, giving me an incorrect average. I then attempted to do an averageif function that only calculated values above 0:

    Please Login or Register  to view this content.
    However, I'm returned with a #VALUE! error. (I've tried the CTRL + Shift + Enter with this as well)

    The issue is - the remaining 5 cells that are being added into the total average calculation have no values within them. Their formula is "=K6/C6", however, there isn't a value for five of the eight cells. Is there any way around this? I've also tried SUMIF and COUNTIF, however; those return errors as well.

    Any help would be appreciated.
    Last edited by Ducjes; 07-06-2010 at 03:43 PM.

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

    Re: AverageIf across a range of sheets

    If you have formula's in those cells, they have to be giving either a value, a 0 or an error (#/DIV). You can modify your formulas on the individual sheets with IF statements to remove errors.
    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

  3. #3
    Registered User
    Join Date
    03-16-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: AverageIf across a range of sheets

    Quote Originally Posted by ChemistB View Post
    If you have formula's in those cells, they have to be giving either a value, a 0 or an error (#/DIV). You can modify your formulas on the individual sheets with IF statements to remove errors.
    I forgot to mention that I do have IF statements within those formulas -- sorry.

    Please Login or Register  to view this content.
    Most of the cells it is counting have a 0 value, however it isn't displayed as I have "Show a zero in cells that have a zero value" unchecked.

    Any suggestions?

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

    Re: AverageIf across a range of sheets

    You might want to remove those zeros also i.e. change your formulas to
    =IF(OR(ISERROR(K6/C6),K6=0),"",K6/C6)
    Does that help your cross the sheet calculations?

  5. #5
    Registered User
    Join Date
    03-16-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: AverageIf across a range of sheets

    Quote Originally Posted by ChemistB View Post
    You might want to remove those zeros also i.e. change your formulas to
    =IF(OR(ISERROR(K6/C6),K6=0),"",K6/C6)
    Does that help your cross the sheet calculations?
    That works great. Thanks so much!

+ 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