+ Reply to Thread
Results 1 to 11 of 11

Formula to count attendance by month in a class Register

  1. #1
    Registered User
    Join Date
    09-12-2018
    Location
    Port of Spain, Trinidad
    MS-Off Ver
    Excel 16
    Posts
    53

    Formula to count attendance by month in a class Register

    I am working on a class register that records the attendance of students within a semester. I have been able to write the formula that counts Total Attendance for the semester (Jan-May) but I
    am struggling to write a formula that counts total attendance for a specific month (eg Feb). See screenshot below and file attached. (PS the dates on the register are dynamic)




    Class Register.PNG
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Formula to count attendance by month in a class Register

    Where do you specify which month you want attendance for? Where do you want the result to go?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    09-12-2018
    Location
    Port of Spain, Trinidad
    MS-Off Ver
    Excel 16
    Posts
    53

    Re: Formula to count attendance by month in a class Register

    Ideally I would want the attendance to be on another sheet where I can simply change the month from say Jan to Feb and it automatically show what was the attendance in that month.

    But for simplicity sake the month could go in say F1 and the attendance for that month in F2.

    I hope I am answered your questions properly.

  4. #4
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Formula to count attendance by month in a class Register

    Test my attachment.

    Greetings.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-12-2018
    Location
    Port of Spain, Trinidad
    MS-Off Ver
    Excel 16
    Posts
    53

    Re: Formula to count attendance by month in a class Register

    hi maras… thank you very much for attempting to solve my problem.

    Unfortunately your attachment produces a #Ref error and I suspect doesn't factor that the dates are dynamic and not static.

    Just to be clear I wanted cell F1 to be a month eg Jan 2019 and cell F2 to be the total attendance for that month eg 35.
    Last edited by TheGomzee; 03-14-2019 at 04:15 PM.

  6. #6
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Formula to count attendance by month in a class Register

    My solution includes dynamic date changes.
    This can be a problem with the date system.
    Could you attach a workbook with an error?
    I will try to include your suggestions.

    Greetings.

  7. #7
    Registered User
    Join Date
    09-12-2018
    Location
    Port of Spain, Trinidad
    MS-Off Ver
    Excel 16
    Posts
    53

    Re: Formula to count attendance by month in a class Register

    I am re-attaching the sheet you provided where it shows the #Ref also via screenshot


    Class Register_maras.PNG
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula to count attendance by month in a class Register

    How are you counting attendance? Each day is broken into two sessions. Do they get 0.5 if they attend morning but not afternoon? Are we just counting "Present" and "Late"?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  9. #9
    Registered User
    Join Date
    09-12-2018
    Location
    Port of Spain, Trinidad
    MS-Off Ver
    Excel 16
    Posts
    53

    Re: Formula to count attendance by month in a class Register

    Just counting Present and Late. Basically each student has a possible of 2 attendances per day.

  10. #10
    Registered User
    Join Date
    09-12-2018
    Location
    Port of Spain, Trinidad
    MS-Off Ver
    Excel 16
    Posts
    53

    Re: Formula to count attendance by month in a class Register

    Ok I think I understand your wonderful formula now... It truly is wonderful

    There was a slight language error I suspect in your formula where you had the date format of the text formula as "mmrrrr" but in my language it is "mmyyyy". This caused the #Ref error.

    It seems to be working now. I will test it a few different ways and if it holds up I will close the thread as Solved.

    Thank you for your patience and assistance.

  11. #11
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Formula to count attendance by month in a class Register

    Yes, you are right. This is the real reason for the error to appear.
    Glad to help.

    Greetings.

+ 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. Attendance Register
    By hardice2005 in forum Office 365
    Replies: 1
    Last Post: 01-19-2018, 06:18 PM
  2. [SOLVED] Attendance Register using time formulas
    By asifprpt900 in forum Excel General
    Replies: 17
    Last Post: 07-16-2017, 05:31 AM
  3. School Attendance Register- Calculating for half day withdrawal
    By kurtyranks in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-29-2016, 06:15 AM
  4. Attendance Register with Excel?
    By hongman in forum Excel General
    Replies: 3
    Last Post: 11-10-2016, 06:03 PM
  5. Replies: 10
    Last Post: 03-17-2016, 05:34 AM
  6. [SOLVED] Can a register automate a memo for none attendance?
    By Crumm in forum Excel General
    Replies: 1
    Last Post: 08-25-2005, 09:05 AM

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