Null values

cornishteeth

Board Regular
Joined
Dec 6, 2002
Messages
117
I have two field LastMeeting and Comments. I want to count the number of fields that are not Null. I tried a variety of things but cant seem to figure it out. The result is to be put on a report. Can someone please direct me to where I can find this info. or possibly an example.

Thanks
Frank
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi Frank,

to count the number of columns which are not NULL the query hast to look like this:

SELECT Count([COLUMN]) AS Fields_with_data
FROM

HAVING (((Count([COLUMN)) Is Not Null));
 
Upvote 0
Create a Query in Design Mode and select the 2 fields, LastMeeting and Comments, and any other fields that you want to group and report on and add them to the design grid. Next select Totals by right-clicking on one of the fields in the grid and selecting Totals from the floating menu or just click the S on the Toolbar. For the LastMeeting and Comments fields, change Group By to Count. This will only count the fields if they are populated.

TD
 
Upvote 0

Forum statistics

Threads
1,221,832
Messages
6,162,254
Members
451,757
Latest member
iours

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top