Your table doesn't have the correct structure. To do what your asking, without any complex coding, you'll need to create 2 tables, one for Students and One for Subjects & Marks, and create a relationship between them. Below is the table structure you need.
TABLE: StudentsField: StudentID Datatype: AutoNumber (Make primary key)
Field: StudentName Datatype: Text
Field: Year Datatype: Text
Field: Class Datatype: Text
TABLE: SubjectField: StudentID Datatype: Number
Field: SubjectName Datatype: Text
Field: Mark Datatype: Number
The create a relationship between the 2 tables by going to Tools > Relationships; Add the Student Table and the Subject Table. Click and drag the Field "StudentID" from Subject Table onto Student Table (this is crucial, don't do it the other way) and Enforce Referential Integrity.
This type of relationship will let you create a custom number of subjects for a given student, and it will let you sort by subject names, classes and years using the Access Wizards.