Solved

Excel - Calculate the percentage of cells that contain data

Posted on 2011-09-29
1
293 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
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

706 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now