+ Reply to Thread
Results 1 to 26 of 26

Generate Students Report Monthly Classwise

  1. #1
    Registered User
    Join Date
    05-14-2014
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    40

    Generate Students Report Monthly Classwise

    Generate Students Report Monthly Classwise.


    I have file including following worksheets
    1.Settings
    2.Attendance Register (It contains data of students name, class,status, date)
    3.Class Attendance Report (user has choice tochoose any class from list, and the relevant data of that particular class comedown in sheet like rollno, name, month and attendance percentage
    Problem. In the sheet named ClassAttendance Report when user choose class name from the list the rollno, studentname data is coming right, but the attendance percentage which I calculatedgives wrong value, I want the exact attendance value of particular rollno which user choose from the list.
    See the uploaded file for reference from below link.

    https://www.dropbox.com/s/j5ljsdvfb2...%202.xlsx?dl=0


    Thanks in advance

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Generate Students Report Monthly Classwise

    Please post your file to the forum as many respondents do not want to visit file-hosting sites.

  3. #3
    Registered User
    Join Date
    05-14-2014
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    40

    Re: Generate Students Report Monthly Classwise

    I have attached file here. please check. Thanks.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Generate Students Report Monthly Classwise

    I have changed some of the formulae to make them generic.

    in B33 (Rol lno)

    =IFERROR(INDEX(RollNo,SMALL(IF(Class=$C$14,ROW(RollNo)-ROW($B$10)+1,""),ROWS($1:1))),"")

    Enter with Ctrl+Shift+Enter

    in C33

    =IFERROR(VLOOKUP($B33,'Attendance Register'!$B$10:$C$1050,2,0),"")

    in D33

    =IF($C33<>"",SUMPRODUCT(('Attendance Register'!$H$9:$NG$9<=MIN(TODAY(),D$24))*('Attendance Register'!$H$9:$NG$9>=EOMONTH(D$24,-1))*('Attendance Register'!$C$10:$C$2000='Class Attendance Report'!$C33)*(ISNUMBER(MATCH('Attendance Register'!$H$10:$NG$2000,{"PRESENT","LEAVE"},0))))/$D$25,"")

    Copied across to E and F and down columns D, E, F

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Generate Students Report Monthly Classwise

    See the attached:
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-14-2014
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    40

    Re: Generate Students Report Monthly Classwise

    Great....its worked... Thank you very much.

  7. #7
    Registered User
    Join Date
    05-14-2014
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    40

    Re: Generate Students Report Monthly Classwise

    Here I found one problem, when you changed formula now Its giving all students (even their status is dropped) infact I want only the data of those students which status is active in Attendance Register sheet F10.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Generate Students Report Monthly Classwise

    Thank you for the feedback.

    If your question has been answered could you please mark the thread as solved ("Thread Tools" at top of first post").

  9. #9
    Registered User
    Join Date
    05-14-2014
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    40

    Re: Generate Students Report Monthly Classwise

    Here I found one problem, when you changed formula now Its giving all students (even their status is dropped) infact I want only the data of those students which status is active in Attendance Register sheet F10.

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Generate Students Report Monthly Classwise

    Change "Roll No" formula to only select "Active" students

    =IFERROR(INDEX(RollNo,SMALL(IF((Class=$C$14)*(Status="Active"),ROW(RollNo)-ROW($B$10)+1,""),ROWS($1:1))),"")

    Enter with Ctrl+Shift+Enter

    You need to change the "Overall" calculation to be similar to the Monthly attendance calculation.

  11. #11
    Registered User
    Join Date
    05-14-2014
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    40

    Re: Generate Students Report Monthly Classwise

    yes infact I have major problem in calculate the monthly attendance calculation of active students. I tried many logic couldn't success. if you can guide little more. thanks in advance.

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Generate Students Report Monthly Classwise

    I have major problem in calculate the monthly attendance calculation of active students
    The figures provided looked OK to me (I didn't check every student).


    Post a file showing expected results: in the file you posted all students are "Active" - what exactly is (are) the problem(s)??

    Explain any calculations needed.

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Generate Students Report Monthly Classwise

    ... one error ...


    {"PRESENT","LEAVE"},0))))/$D$25,""),"")

    should be ..

    {"PRESENT","LEAVE"},0))))/D$25,""),"") (no $ in front of the D)

  14. #14
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Generate Students Report Monthly Classwise

    Formula for attendance should be ...

    =IFERROR(IF($C33<>"",SUMPRODUCT(('Attendance Register'!$H$9:$NG$9<=MIN(TODAY(),D$24))*('Attendance Register'!$H$9:$NG$9>EOMONTH(D$24,-1))*('Attendance Register'!$C$10:$C$2000='Class Attendance Report'!$C33)*(ISNUMBER(MATCH('Attendance Register'!$H$10:$NG$2000,{"PRESENT","LEAVE"},0))))/D$25,""),"")


    my error ( I had ">=" rather than just ">")

  15. #15
    Registered User
    Join Date
    05-14-2014
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    40

    Re: Generate Students Report Monthly Classwise

    This formula seems okay. but it has one problem if there are students with similar names it gives wrong data. so I changed your formula little bit I put $B33 which is RollNo Field and roll no is unique instead of $C33 which is name field which may be same. so I used following formula.
    =IFERROR(IF($B33<>"",SUMPRODUCT(('Attendance Register'!$H$9:$NG$9<=MIN(TODAY(),D$24))*('Attendance Register'!$H$9:$NG$9>EOMONTH(D$24,-1))*('Attendance Register'!$C$10:$C$2000='Class Attendance Report'!$B33)*(ISNUMBER(MATCH('Attendance Register'!$H$10:$NG$2000,{"PRESENT"},0))))/D$25,""),"")

    by ctril shift enter

    but it gives 0% for all students. unable to detect the error. please note I need to display the attendance result only for those students whose status is active. dropped students list should not come. sorry if I am bothering you.
    Last edited by kashifshahzad; 06-09-2016 at 07:02 AM.

  16. #16
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Generate Students Report Monthly Classwise

    You need to change the range ... from C to B

    =IFERROR(IF($B33<>"",SUMPRODUCT(('Attendance Register'!$H$9:$NG$9<=MIN(TODAY(),D$24))*('Attendance Register'!$H$9:$NG$9>EOMONTH(D$24,-1))*('Attendance Register'!$B$10:$B$2000='Class Attendance Report'!$B33)*(ISNUMBER(MATCH('Attendance Register'!$H$10:$NG$2000,{"PRESENT"},0))))/D$25,""),"")

  17. #17
    Registered User
    Join Date
    05-14-2014
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    40

    Re: Generate Students Report Monthly Classwise

    yes i already changed range from C to B
    but the result is caclulation is 0% to all. which is totally wrong.

  18. #18
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Generate Students Report Monthly Classwise

    It calculates OK in the file you posted.

  19. #19
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Generate Students Report Monthly Classwise

    See the attached ....
    Attached Files Attached Files

  20. #20
    Registered User
    Join Date
    05-14-2014
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    40

    Re: Generate Students Report Monthly Classwise

    It seems okay now. but only problem is that it takes too long to calculate even on Core I-7 Processor with 8GB RAM.

  21. #21
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Generate Students Report Monthly Classwise

    Yes ... calculation time is a problem.

    Your original formulas uses COUNTIF which is much faster but doesn't have the flexibility of SUMPRODUCT (2 dimensional arrays)..

    And your originals are "hard-coded" so if you change the class all the formulas need to change (range references).

    I will re-look at this and see if I can find a quicker but generic way of doing the calculations.

  22. #22
    Registered User
    Join Date
    05-14-2014
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    40

    Re: Generate Students Report Monthly Classwise

    Thanks you very much. if your found some quicker but generic please do share with me

  23. #23
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Generate Students Report Monthly Classwise

    Try this

    in D33

    =IF($C33<>"",SUM(COUNTIFS('Attendance Register'!$H$9:$NG$9,"<="&MIN(TODAY(),D$24),'Attendance Register'!$H$9:$NG$9,">"&EOMONTH(D$24,-1),OFFSET('Attendance Register'!$B$10,MATCH('Class Attendance Report'!$B33,RollNo,0)-1,6,1,364),{"PRESENT","LEAVE"}))/D$25,"")


    Copy across to E & F

    then down
    Attached Files Attached Files
    Last edited by JohnTopley; 06-09-2016 at 09:57 AM.

  24. #24
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Generate Students Report Monthly Classwise

    Alternative offset ...


    =IF($C33<>"",SUM(COUNTIFS('Attendance Register'!$H$9:$NG$9,"<="&MIN(TODAY(),D$24),'Attendance Register'!$H$9:$NG$9,">"&EOMONTH(D$24,-1),OFFSET('Attendance Register'!$H$10,MATCH('Class Attendance Report'!$B33,RollNo,0)-1,0,1,364),{"PRESENT","LEAVE"}))/D$25,"")
    Last edited by JohnTopley; 06-09-2016 at 10:30 AM.

  25. #25
    Registered User
    Join Date
    05-14-2014
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    40

    Re: Generate Students Report Monthly Classwise

    It's bi faster than previous used formula. Thanks once again

  26. #26
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Generate Students Report Monthly Classwise

    Considerable faster than SUMPRODUCT!!!

    Anyway, if your problem had been solved, can you mark thread as such ("Thread Tools" at top of first post).

+ 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. Generate Monthly Report
    By rana19 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2015, 02:56 PM
  2. How to extratc data as weekly report and monthly report
    By Nisar.mohammed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-23-2014, 11:19 AM
  3. Monthly, Bi-monthly, Quarterly, Yearly Report Tracking Help
    By eugene_lys in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-26-2014, 11:08 PM
  4. Replies: 1
    Last Post: 08-15-2013, 02:15 PM
  5. Report Cards for students
    By suhrobmuboraksho in forum Excel General
    Replies: 3
    Last Post: 05-12-2013, 12:58 AM
  6. How to collect daily report from spread sheet and accumulate for monthly report
    By yshguru in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-22-2013, 05:17 PM
  7. Need to save Running Total and generate Weekly and Monthly Report based on date
    By soready42012 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-04-2012, 09:10 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