[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Access - Totals Query  - Include Count for Blank Cells

Posted on 2009-04-02
8
Medium Priority
?
469 Views
Last Modified: 2012-05-06
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
Comment
Question by:tahirih
[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
  • 5
  • 3
8 Comments
 
LVL 44

Expert Comment

by:GRayL
ID: 24053549
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
 

Author Comment

by:tahirih
ID: 24053636
How can I implement this in an Access Query?

Thanks
0
 
LVL 44

Expert Comment

by:GRayL
ID: 24053713
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
Industry Leaders: 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!

 
LVL 44

Expert Comment

by:GRayL
ID: 24053737
I guess I have to ask - Why is this question in the Access Zone?
0
 

Author Comment

by:tahirih
ID: 24053800
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
 
LVL 44

Accepted Solution

by:
GRayL earned 2000 total points
ID: 24054021
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
 

Author Closing Comment

by:tahirih
ID: 31565929
Just what I have been looking for.

Thanks!
0
 
LVL 44

Expert Comment

by:GRayL
ID: 24054335
Thanks, glad to help.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

656 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