• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 480
  • Last Modified:

Access - Totals Query - Include Count for Blank Cells

In the attached Excel workbook, please find an example of a Pivot Table that was created, where cells that were blank are still counted as a value (i.e. I want to know how many blank cells the column contained).

I would like to reproduce the Pivot Table results on the sheet "Summary Count" that is based off of the data on sheet "Pivot Empty Sample."

Thanks
Sample-Pivot-Empty.xls
0
tahirih
Asked:
tahirih
  • 5
  • 3
1 Solution
 
GRayLCommented:
Having filled the blanks with ="", the cells are no longer blank - they are text.  Find an empty cell, A623 for example and in B623 type =IsText(A623) returns True.  Make sure you are counting the right thing.
0
 
tahirihAuthor Commented:
How can I implement this in an Access Query?

Thanks
0
 
GRayLCommented:
You have imported the file into Access?  When you go to record 623, does FSC look empty?  If so run this query:

SELECT Count(FSC) FROM myTable WHERE FSC=""
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
GRayLCommented:
I guess I have to ask - Why is this question in the Access Zone?
0
 
tahirihAuthor Commented:
Please review the Pivot Table results. I want to get a resulting Access table that looks just like this (without the Grand Total at the bottom).

Here are the steps I need to clarify:

1. The Excel table I did format, to be able to create the Pivot Table you see
2. Please assume that the Access table will not have any prior formatting to blank cells (the Excel table did not either - I included ="" to create the Pivot Table).
3. Similar to the ="", I would like to have a similar coding system in Acces

Therefore, I have placed the question in the Access zone. Hope this made sense.
0
 
GRayLCommented:
Import the Pivot Empty_Sample sheet using the Import wizard.  Then run this query:

SELECT fsc, Count(Nz(fsc,""))
FROM [Pivot Empty_Sample] GROUP BY fsc ORDER BY fsc;

0
 
tahirihAuthor Commented:
Just what I have been looking for.

Thanks!
0
 
GRayLCommented:
Thanks, glad to help.
0

Featured Post

Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now