Solved

Excel - Calculate the percentage of cells that contain data

Posted on 2011-09-29
1
299 Views
Last Modified: 2012-05-12
Hi,

I need to calculate the percentage of cells that contain data for rows and columns.  I've labeled the row and column and Percent Complete.


Master-List.xlsx
0
Comment
Question by:REBIC
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
ID: 36819069
Suppose you wanted to check the % complete for, say, A2:M2.

This is one formula:

=COUNTA(A2:M2)/COLUMNS(A2:M2)

Be advised that it will count a cell that has a formula, even if that formula evaluates to a zero length string.

If you need to exclude all empty cells, as well as cells whose values are zero length strings, you'd use an array formula like this:

{=SUM(IF(A2:M2<>"",1,0))/COLUMNS(A2:M2)}

To enter an array formula, do not enter the curly braces, and hit Ctrl+Shift+Enter instead of Enter to finish it off.  Excel will then display those braces to indicate that it's an array formula.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question