I have an Excel sheet with students and subjects listed in it as m:n relationship.
The number of subjects are fixed (6
), but the number of students are growing.
So basically, each student will have 6 rows for him/her, corresponding to each subject.
Sometimes it so happens, that the data entry person missies adding one subject to a student.
A monthly report is pulled (from a legacy system) and we found this error/miss.
How to quickly add the missing subjects for each student in the excel sheet?
We tried counting the number of rows by each student, but the number of students whose subjects are missed (i.e. whose row count is < 6) are way too many to fix manually.
Any excel formula which can quickly and easily do it?
example:-
Student Subject
Bruce Science
Bruce Arts
Bruce Maths
John Science
John Maths
John Social Studies
So as per the above example, I want a formula which will add 2 rows, one for John with the missing Arts subject, and one for Bruce with the missing Social Studies subject.
=COUNTIF(A:A, A2)
should work, (it look in cell A2 and finds Bruce. Tnan it counts how often Bruse is in column A. The answer should be six. Expand that formula down and you have part one of X on the road to the solution.