Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Dcounta for counting staff grades


Hi
I have a roster at work and use DCOUNTA to count how may qualified
nurses I have on each shift. I need to count the nurses with grade
E,F,G present on that shift
Am I correct in using Dcounta, is there any other option.
I just ask as I need to do quite a bit of work to create all the
querries for each day of the month

cheers
John


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Dcounta for counting staff grades

Assuming your grade column is G, then you could do it like this:

=COUNTIF(G:G,"E")+COUNTIF(G:G,"F")+COUNTIF(G:G,"G" )

if you have one sheet per shift. If all the data is in one sheet, with
another column to denote the shift, then a SUMPRODUCT formula could
get you the count per shift - post back with further details
describing what you have and what you want to do if you require more
assistance.

Hope this helps.

Pete

On Nov 18, 7:17 pm, John in Wembley wrote:
Hi
I have a roster at work and use DCOUNTA to count how may qualified
nurses I have on each shift. I need to count the nurses with grade
E,F,G present on that shift
Am I correct in using Dcounta, is there any other option.
I just ask as I need to do quite a bit of work to create all the
querries for each day of the month

cheers
John


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Dcounta for counting staff grades

=SUMPRODUCT(COUNTIF(B:B,{"E","F","G"}))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"John in Wembley" wrote in message
...

Hi
I have a roster at work and use DCOUNTA to count how may qualified
nurses I have on each shift. I need to count the nurses with grade
E,F,G present on that shift
Am I correct in using Dcounta, is there any other option.
I just ask as I need to do quite a bit of work to create all the
querries for each day of the month

cheers
John




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Dcounta for counting staff grades

On Sun, 18 Nov 2007 12:28:30 -0800 (PST), Pete_UK
wrote:

describing what you have and what you want to do if you require more
assistance.


staff grade mon tue wed
john A s s off
steve B off s s
anne C s s s

qualified one two one
(a,b grades)
total staff two three two


thanks to all

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Dcounta for counting staff grades

You seem to have changed your grades !

I would suggest that you put your totals in the top two rows, rather
than at the bottom, so that you don't have to keep scrolling down and
your table can grow without messing up the formulae. So, insert two
rows at the top, so that your data now starts on row 4. In C1 (above
Monday) you can enter this formula:

=SUMPRODUCT((($B$4:$B$100="A")+($B$4:$B$100="B"))* (C4:C100="s"))

to give the number qualified who are on shift (="s"), and this one in
C2:

=COUNTIF(C4:C100,"s")

which will give the total staff on shift (excluding any "off""s).

Copy these two formulae across into the other columns to cover other
days. I've assumed you may have data up to row 100 - change this
reference if you have more.

Hope this helps.

Pete


On Nov 19, 6:50 pm, John in Wembley wrote:
On Sun, 18 Nov 2007 12:28:30 -0800 (PST), Pete_UK

wrote:
describing what you have and what you want to do if you require more
assistance.


staff grade mon tue wed
john A s s off
steve B off s s
anne C s s s

qualified one two one
(a,b grades)
total staff two three two

thanks to all




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Dcounta for counting staff grades

On Mon, 19 Nov 2007 18:50:18 GMT, John in Wembley
wrote:

On Sun, 18 Nov 2007 12:28:30 -0800 (PST), Pete_UK
wrote:

describing what you have and what you want to do if you require more
assistance.


staff grade mon tue wed
john A s s off
steve B off s s
anne C s s s

qualified one two one
(a,b grades)
total staff two three two

I need to count how many qualified staff on each shift...
eg Monday has one on shift., tue, two, wed, one
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Dcounta for counting staff grades

That is what my formulae do. Did you try them?

Pete

On Nov 19, 7:35 pm, John in Wembley wrote:
On Mon, 19 Nov 2007 18:50:18 GMT, John in Wembley

wrote:
On Sun, 18 Nov 2007 12:28:30 -0800 (PST), Pete_UK
wrote:


describing what you have and what you want to do if you require more
assistance.


staff grade mon tue wed
john A s s off
steve B off s s
anne C s s s


qualified one two one
(a,b grades)
total staff two three two


I need to count how many qualified staff on each shift...
eg Monday has one on shift., tue, two, wed, one


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Dcounta for counting staff grades

On Mon, 19 Nov 2007 11:37:11 -0800 (PST), Pete_UK
wrote:

That is what my formulae do. Did you try them?

Pete


thanks Pete, Dcounta requires qutie a few querries

cheers from wet wembley
  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Dcounta for counting staff grades

Thanks for the feedback, John - it's dry here in Warrington, for a
change.

Pete

On Nov 19, 7:43 pm, John in Wembley wrote:
On Mon, 19 Nov 2007 11:37:11 -0800 (PST), Pete_UK

wrote:
That is what my formulae do. Did you try them?


Pete


thanks Pete, Dcounta requires qutie a few querries

cheers from wet wembley


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DCOUNTA & wildcards Paul Dennis Excel Discussion (Misc queries) 6 September 4th 07 06:44 PM
Dcounta & dates Starfishjen Excel Discussion (Misc queries) 2 February 8th 07 10:31 PM
how many staff have 1 skill, how many staff have 2 skills, etc. ch90 Excel Discussion (Misc queries) 3 October 27th 05 03:52 PM
Counting grades in questionaire johli Excel Discussion (Misc queries) 6 September 20th 05 07:50 PM
Counting number of grades in a row Marie1uk Excel Worksheet Functions 13 July 6th 05 12:56 PM


All times are GMT +1. The time now is 08:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"