Count the Number of staff who are in the month

57oln

New Member
Joined
Mar 17, 2013
Messages
9
Hi again,

I need some help to count the number of people who worked in a month.

I have a table similar to the below. note date format is dd/mm/yyyy
DateWhoTask 1Task 2Task 3
01/01/2012Tim50102
01/01/2012Jane102050
02/01/2012Tim9000
02/02/2012Tim50822

<tbody>
</tbody>

I want my query to show

# of Staff in Month
January 2
February 1

Where January equals Tim and Jane (2) and February equals Tim (1) so on and so forth.

The names pull from a "Staff" Table I have to populate a combo box on an entry form.

Thanks again for the help in advance.

Jay
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Create a query that groups on Date (by month), the Who (Staff) field.
Then base a second query on that; group by Date again, and Count the staff. Note: Don't use Date, Month, Year, Day as field names. They are reserved names / function names in Access, and will cause you problems. Do a search on Reserved Words, and avoid them. WorkDate is a good field name, as well as being more descriptive.

Denis
 
Upvote 0
Create a query that groups on Date (by month), the Who (Staff) field.
Then base a second query on that; group by Date again, and Count the staff. Note: Don't use Date, Month, Year, Day as field names. They are reserved names / function names in Access, and will cause you problems. Do a search on Reserved Words, and avoid them. WorkDate is a good field name, as well as being more descriptive.

Denis
Thanks a stack SydneyGeek, I used your post and brought the document processing through the queries as well to give me a total report I needed.

I only used Date in this example my table is called something different.

Cheers and thanks again!!!
 
Upvote 0

Forum statistics

Threads
1,196,048
Messages
6,013,088
Members
441,747
Latest member
darkman77

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