+ Reply to Thread
Results 1 to 7 of 7

Calculating percentages-how to ignore blank cells?

  1. #1
    Registered User
    Join Date
    03-21-2008
    Posts
    3

    Calculating percentages-how to ignore blank cells?

    I'm trying to calculate percentages with Excel, but I want it to ignore any blank cells. For example, I have 5 cells for data entry-each of the cells will contain a number up to 60. Therefore, the cell that is calculating the percentage of the 5 cells is based on a total of 300. However, if one of the cells is left blank, I want the the total percentage to be based on 240; if two of the cells are left blank, I want the total percentage to be based on 180, etc. I also want an entered zero to be included in the calculation (not changing the total the percentage is based on.)

    I've used Excel quite a bit, but mostly for non-technical purposes. Any help would be greatly appreciated!!

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    Are the cells in question all right next to each other or are there spaces between them? If they are all next to each other, you could do =SUM(A1:A5)/(COUNT(A1:A5)*60)

  3. #3
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    Hi. You can use the "average" formula. It disregards blanks (excel 2003) but takes into account zeros. Ex:

    =average(a1:a5)
    Last edited by Portuga; 03-21-2008 at 08:09 PM.
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    That doesn't take the 60 points per item into account to get the percentage necessary, though.

  5. #5
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    I stand corrected lemoineer. I didnt really read what you were looking for. (not averages, percentages!)

    Thanks for the correction darkyam


    In case the cells are not all next to each other. You could add an extra column called "count" for example purposes in column "E"
    Here you could do something like =If(A1="";0;1) and drag down. This would count only cells that have data (Including with zeros. A then modify darkyam´s formula to:

    =SUM(A1:A5)/(SUM(E1:E5)*60)
    Last edited by Portuga; 03-21-2008 at 08:28 PM.

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    A percentage is only an average in disguise....

    =AVERAGE(A1:A5)/60

    format as percentage

  7. #7
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    Respect daddy!


+ 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