+ Reply to Thread
Results 1 to 12 of 12

AVERAGE #DIV/0 empty cell problem across different W/Sheets to summary sheet

  1. #1
    Registered User
    Join Date
    02-10-2014
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    AVERAGE #DIV/0 empty cell problem across different W/Sheets to summary sheet

    Hi

    This is my first post. I am not great with excel so please be patient with me.

    I have a summary sheet from where I have the information from 12 separate sheets (months) feeding into. The problem I am having is I want to calulate the averages from the other sheets. If no data is entered (as that month has not yet passed) there will obv be nothing to summarise so it is kicking back #DIV/0. The other sheets (months) are averaged fields I am calulating from.

    The summary sheet I would like the average for the year so far. I setting the spreadsheet up only, multiple people will use this but are worse than me at excel so no formulas to be added later.

    I have looked at IF and IFERROR but they don't seem to work as I already am calulating averages in these cells.

    If anyone understand what I'm, saying please help!

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: AVERAGE #DIV/0 empty cell problem across different W/Sheets to summary sheet

    it will be easiest to help if you can attach an example workbook, showing the worksheet / data structure you are working with
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: AVERAGE #DIV/0 empty cell problem across different W/Sheets to summary sheet

    Since I don't have an example to go by... I would think that making each of the AVERAGE formulas on the individual pages into IFERROR statements would work? Something like this:

    Say you are averaging cells A1:A10 on each sheet (Sheet1:Sheet12), and storing that average in cell B1. Use =IFERROR(AVERAGE(A1:A10),"") in cell B1 on each sheet.

    Then, on your summary sheet, you can use: =AVERAGE(Sheet1:Sheet12!B1).

    Since the B1 cells on all sheets will either contain a number, or a blank, the average formula should now work correctly.

    Good luck,
    Moo

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: AVERAGE #DIV/0 empty cell problem across different W/Sheets to summary sheet

    Moo the Dog, that would result in an average of an average - which would be inherently inaccurate...

  5. #5
    Registered User
    Join Date
    02-10-2014
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: AVERAGE #DIV/0 empty cell problem across different W/Sheets to summary sheet

    Thanks for your repsonses so quick

    My sheets calulate fine, no issues there. It is just when the months without data are averaged in - this where the problems are.

    So (Network wont allow me to attach)

    January Sheet Totals C57:F57 are averaged into C59. This repeats 3 times on the sheet again at K57:N57 to K59 then S57:V57 to S59.
    All the sheets are named by month and are set out exactly as above.

    Summary sheet
    I have the 3 sets of data from each sheet displayed with =January!C59 etc (Cells F10:F12)
    In cell F8 I would like the average for cells F10:F12 to be displayed. This would be the same for each month.

    I also have a an average for the year in K5 as =AVERAGE(F8,F15,F22,F29,F36,F43,F50,F57,F64,F71,F78,F85)


    Is this better info?

    Thansk again.

  6. #6
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: AVERAGE #DIV/0 empty cell problem across different W/Sheets to summary sheet

    Quote Originally Posted by OllyXLS View Post
    Moo the Dog, that would result in an average of an average - which would be inherently inaccurate...
    How right you are. Too early in the morning still, haven't had enough coffee! =)

    - Moo

  7. #7
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: AVERAGE #DIV/0 empty cell problem across different W/Sheets to summary sheet

    Still sounds like you're ending up with averages of averages, to me...

    However. To ignore the cells with no numbers in:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Adapt to suit your workbook.

  8. #8
    Registered User
    Join Date
    02-10-2014
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: AVERAGE #DIV/0 empty cell problem across different W/Sheets to summary sheet

    image.jpg

    Hope you can see this first image

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: AVERAGE #DIV/0 empty cell problem across different W/Sheets to summary sheet

    AVERAGE will ignore empty cells unless EVERY cell referenced is empty then you'll get the #DIV/0! error.

    The suggestion by Moo in post #3 is a suitable work-around.

    If this isn't working tell us EXACTLY which cells are being referenced. Do any of these cells already contain #DIV/0! errors?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  10. #10
    Registered User
    Join Date
    02-10-2014
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: AVERAGE #DIV/0 empty cell problem across different W/Sheets to summary sheet

    image.jpg

    I know my main problem is the average for the year. Sorry

  11. #11
    Registered User
    Join Date
    02-10-2014
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: AVERAGE #DIV/0 empty cell problem across different W/Sheets to summary sheet

    thank you for all of your help - very much appreciated.

    Thank you I have sorted it (hopefully - might be back ha)

    I have used =AVERAGE(F10:F12,F17:F19,F24:F26,F31:F33,F38:F40,F45:F47,F52:F54,F59:F61,F66:F68) on summary sheet to get my average for the year

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: AVERAGE #DIV/0 empty cell problem across different W/Sheets to summary sheet

    Good deal. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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] Subtotal Average Multiple Sheets into a Summary Sheet
    By hornet77 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-10-2013, 11:11 PM
  2. [SOLVED] Macro - Merge 16 sheets, first row problem on empty sheet. Please help.
    By lagiosman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-11-2013, 06:45 AM
  3. [SOLVED] Summary sheet - copy cell contents from multiple sheets to one summary sheet
    By jsmity in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2013, 10:32 AM
  4. Create a summary from multiple sheets on a master/summary sheet
    By detribus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2012, 08:04 PM
  5. Populate Summary Sheet with same cell from multple sheets
    By ShredDude in forum Excel General
    Replies: 9
    Last Post: 07-16-2007, 08:12 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