I'm building a system to analyse the attendance patterns of students at a college.
I'm having difficulty structuring a table which holds attendance data by student, week, day, period and class, and I would like to know if I can quickly and easily create the table using copy and paste down, and if the table will automatically update when new students are added to a separate 'student_records' table.
I have several catagories of data which go into student records, but the ones that are important for attendance analysis are 'Student ID' and 'Class'. These two catagories are listed in a table called 'student_records', along with all the other students records (such as name, phone number, etc.).
Actually, the 'Class' is only necessary for teachers when their marking attendance, so that they can select a class and see everyone listed in that class, to make it easy to mark them as present or absent from that particular lecture. A student can attend any lecture being given by any staff member, according to the schedules. However, from what I understand of pivot tables, I will need to specify 'Class' in the attendance table, to build relationships and get attendance by subject and staff member.
There are two schedules: the subject/lecture schedule; and the staff schedule. There are seven classes and there are seven lectures taking place at any one time.
The table holding the data on attendance is structured with the following order of columns: Student ID - Week - Day - Period - Class - Attendance.
My idea was to have: Student 1 - Week 1 - Day 1 - Period 1 - Class 1 - Attendance(Yes/No) and cycle through the classes (1-7), then the periods, and so on. So there would be 13 weeks x 5 days x 6 periods x 7 classes = 2,730 entries for every student, and only one 'Yes' for any given Week/Day/Period.
I'm stumbling at the first hurdle though, because I can't create the attendance table, such that it takes Student ID values from the 'student_records' table, and places them in the table alongside each combination of Week, Day Period and Class.
And, if this can be done efficiently (or, if this is the most efficient was of structuring the data), how can I arrange it so that when a new student is added to the 'student_records' table, the attendance table automatically updates itself?
Is this possible/efficient?
I have tried copy and paste down, but I either get a relative reference for the student ID column in the attendance table, or Excel doesn't recognize the repeating pattern that I set up with absolute references.
Bookmarks