+ Reply to Thread
Results 1 to 3 of 3

Wanting to count students in class

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    1

    Question Wanting to count students in class

    Hi all
    Wanting to know if you are able to help me; Currently writing up a class register and am want to use an appropriate function across all sessions creating a formula which will return the number of students that attended, for each session. (Which does not count the students that are absent and sick)
    I've tried using DCOUNTA but it wont filter only 'y' -attended. it counts all students including 'S' - sick and 'N' - absent without notification
    Also COUNTIF only refers to the one session date not all sessions if i wanted to refer to a different date


  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Wanting to count students in class

    welcome to the forum, rach123. try COUNTIFS. it's probably best to give us a sample excel file with your desired answers in it. 1 thread that relates is this:
    http://www.excelforum.com/excel-form...te-values.html
    so say your list of Dates in A1:A21, a single date you want in D1 & "y" in B2:B21, try:
    =COUNTIFS(A$2:A$21,">="&D1,B2:B21,"y")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Wanting to count students in class

    You can use COUNTIF in a 2 dimensional array:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    or you can combine ranges:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Remove the Absent Students from the List of Failing Students
    By alyaahmed in forum Excel General
    Replies: 2
    Last Post: 03-28-2013, 01:40 PM
  2. class foactory cannt supply requested class
    By rakeshkaduskar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-26-2012, 02:00 PM
  3. Count and specify class for each row
    By Ricker090 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-13-2012, 05:19 PM
  4. Update Class Count Error
    By MDCK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-18-2009, 12:57 PM
  5. count how many students
    By lunar_star in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2007, 08:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1