+ Reply to Thread
Results 1 to 6 of 6

Help needed with a Average formula

  1. #1
    Registered User
    Join Date
    07-23-2014
    Location
    OMAGH
    MS-Off Ver
    MS OFFICE 2010
    Posts
    9

    Exclamation Help needed with a Average formula

    Hello all

    I have just registered and I’m in need of assistance with a formula if possible, I’m looking for an Average formula which excludes zero’s, blanks cells & doesn’t display #DIV/0!.
    Please find table below of what I’m trying to do

    Capture.JPG

    Mon Tues Wed Thurs Fri Total Average

    Paid Meals 235 208 228 671 224

    Free Meals 62 54 56 172 57

    Supervisors 6 6 6 18 6

    Kitchen Staff 0 0 10 10 3

    Staff 0 #DIV/0!

    Staff Column is stopping me from getting a formula until a enter a figure or 0 and Kitchen staff column is averaging the 3 cells instead of only 1

    Average should be 297,

    But excel showing average as 290.33

    Any help would be much appricated, jpeg attached of table layout

    Thanks

    Barry
    Last edited by barryc721; 07-23-2014 at 10:16 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Help needed with a Average formula

    Try AverageIf with an IFERROR to stop errors



    =IFERROR(AVERAGEIF(A1:A10,">0"),"")



    Welcome to ExcelForum
    Last edited by Speshul; 07-23-2014 at 10:17 AM.
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Registered User
    Join Date
    07-23-2014
    Location
    OMAGH
    MS-Off Ver
    MS OFFICE 2010
    Posts
    9

    Re: Help needed with a Average formula

    Thanks Speshul

    Seems to have worked perfectly

    Many thanks
    Last edited by barryc721; 07-23-2014 at 10:31 AM.

  4. #4
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Help needed with a Average formula

    I edited my response,

    =IFERROR(AVERAGEIF(A1:A10,">0"),"")


    IFERROR will remove any error messages you get.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Help needed with a Average formula

    try this

    =IFERROR(ROUND(AVERAGEIF(B2:G2,">0"),0),0)

    B
    C
    D
    E
    F
    G
    H
    1
    MON TUE WED THU FRI Total Average
    2
    235
    208
    228
    671
    336
    3
    62
    54
    56
    172
    86
    4
    6
    6
    6
    18
    9
    5
    0
    0
    10
    10
    10
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Help needed with a Average formula

    Try this formula...

    check the attached file


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag down..



    Don't forget to click *
    Attached Files Attached Files

+ 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. Formula needed for running average
    By NeroM in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2014, 04:45 AM
  2. Average balance formula needed please
    By fdamore in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-18-2014, 09:37 AM
  3. Formula needed to get average of values
    By szpt9m in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2013, 08:20 AM
  4. Some help needed with an average formula...
    By hello its dean in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-11-2013, 12:31 PM
  5. Specialized average formula needed
    By jman0707 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-14-2009, 02:08 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