+ Reply to Thread
Results 1 to 6 of 6

Formula to Compute Averages - Ignore Zero (Blanks)

  1. #1
    Registered User
    Join Date
    11-13-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question Formula to Compute Averages - Ignore Zero (Blanks)

    I have a lengthy project to compare costs freight for 3 different truck companies that would be a lot easier if I could find a way to get the Average of a row of numbers.

    The problem is that some cells are blank and I cannot figure out how to get the Average without counting the blanks as zeros.

    This is a sample of what I am working on ---->> Freight Cost Comparison.xlsx.

    I know there is a formula that would give me the average quote amount for each row individually, I just don't know what that is.... Please help!!

  2. #2
    Registered User
    Join Date
    10-02-2012
    Location
    Baku
    MS-Off Ver
    Excel 2010
    Posts
    273

    Re: Formula to Compute Averages - Ignore Zero (Blanks)

    You can use countif function to skip blanks. ex
    =SUM(M3:P3)/COUNTIF(M3:P3,">0")

  3. #3
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Formula to Compute Averages - Ignore Zero (Blanks)

    Hi Neane

    AVERAGEIF(Range,"<>",Average_range)

  4. #4
    Registered User
    Join Date
    11-13-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Talking Re: Formula to Compute Averages - Ignore Zero (Blanks)

    Quote Originally Posted by eisayew View Post
    you can use countif function to skip blanks. Ex
    =sum(m3:p3)/countif(m3:p3,">0")
    perfect!!!

  5. #5
    Registered User
    Join Date
    11-13-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Formula to Compute Averages - Ignore Zero (Blanks)

    Thanks to both for your assistance!!

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Formula to Compute Averages - Ignore Zero (Blanks)

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as "SOLVED".
    For the meantime I'll do it for you.

    How?
    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

    Note:
    You can also thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given.
    By doing so you can add to the reputation(s) of those who helped and shared their time in helping you.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ 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