+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : how to Calculate formula to exclude empty cells

  1. #1
    Registered User
    Join Date
    12-21-2008
    Location
    Dupont PA
    Posts
    99

    how to Calculate formula to exclude empty cells

    I just want to know if cell P36 is averaging column P without zeros correctly.
    right now there are 16 names. If the number of names alter, is the formula set up accurate and not include the cells without names.
    Attached Files Attached Files
    Last edited by berk21; 01-27-2009 at 10:52 PM. Reason: Solved

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: how to Calculate formula to exclude empty cells

    Yes, but it could be simplified to =SUM(P10:P34) / COUNTIF(P10:P34, "<>0")

    However, by excluding zeros, you are excluding some legit values, like P10.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-21-2008
    Location
    Dupont PA
    Posts
    99

    Re: how to Calculate formula to exclude empty cells

    ok...then maybe I should have said, can that not average the cells without names. as names will be added and possible deleted time to time.

  4. #4
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: how to Calculate formula to exclude empty cells

    Hi

    Why not just use the same formula as for each individual calculation as you already have the amounts totalled, you have already done this in cells J36 and K36.

    Regards


    Jeff

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: how to Calculate formula to exclude empty cells

    Currently, you are equating individual performance in the P column all through the rest of the sheet. So, Ryan in row 11, you are creating a failure percentage in P11 by dividing QC failures by total jobs QC'd. or O11/L11. Makes sense.

    In the grand total column, you note 25 TOTAL failures in O36, and 94 QC'd jobs total in L36, so I would suggest that following the reasoning used in the individual rows above, the total QC Failure % is 27%. Your sumproduct formula currently in cell P36 is creating a higher percentage than that.

    I don't know which is correct, the formula you're using or 25/94 = 27%. But 27% matches the logic you've used in the rest of the sheet, so that my 2 cents.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Registered User
    Join Date
    12-21-2008
    Location
    Dupont PA
    Posts
    99

    Re: how to Calculate formula to exclude empty cells

    so I really over thought that one...basing it tech by tech really does no justice I guess.

    Thanks again....that works

    is there a site or book that could explain functions in excel to familiar myself with this. Please don't say Excel for dummies

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: how to Calculate formula to exclude empty cells

    I press F1 in Excel every day and type in questions to read up Excel's built-in tutorials on function. That also brings up MS own web support pages, as well.

    That coupled with searching the big Excel web sites brings up answers 80% of the time, and great reading w/examples. The other 20% of the time asking a question ON those sites gets very rapid response.

    ExcelForum.com
    MrExcel.com
    CodeCage.com
    Cpearson.com
    ozgrid...

    Lots of resources.
    Last edited by JBeaucaire; 01-27-2009 at 11:02 PM.

  8. #8
    Registered User
    Join Date
    12-21-2008
    Location
    Dupont PA
    Posts
    99

    Re: how to Calculate formula to exclude empty cells

    Sweet...

    I really don't think I have anything else to ask and thank all especially JB for helping me on all the issues I had.

    Until we meet again!

+ 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