Solved

Excel Pivot Table - Count Blanks

Posted on 2014-04-17
4
3,729 Views
Last Modified: 2014-04-17
I have a problem which involves counts in a Excel Pivot table.

I noticed that blank cells are not included in the count.  Is there a way around this?

I suspect I may need to add another column and populate the cell with something.  I'm asking for some tricks that may be useful in this case.  As you can see in the data, my column titled "Used" has Yes or No and blank entries.  I want to count the blank entries.  How to do that?

Pivot Table Results
Pivot Table Results
Pivot Table Data
Pivot Table Data
Pivot Table Design
Pivot Table DesignPivotBlankEntriesTest.xls
0
Comment
Question by:Jeff Darling
  • 2
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
Flyster earned 500 total points
ID: 40006999
It looks like you're counting the number of colors and not the fact whether they're used or not. In the attached I added a column to the data that gives a value of 1 to and non-blank cell and then added that to the pivot table.

Flyster
PivotBlankEntriesTest.xls
0
 
LVL 12

Author Comment

by:Jeff Darling
ID: 40007755
Thanks, yoru code gave me an idea.  I decided that I wanted "Undecided" if the entry is blank.  I need to count the blanks.

I add an If statement that checks to see if the entry is empty, if it is, then populate with "Undecided".  Otherwise, use that value.  

=IF(D3="","Undecided",D3)

Open in new window

0
 
LVL 12

Author Closing Comment

by:Jeff Darling
ID: 40007756
The answer led me to a solution that met my requirements.
Thanks for your assistance.
0
 
LVL 22

Expert Comment

by:Flyster
ID: 40007925
Thanks. Glad I could help!
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

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,…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

770 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