I need some help with a formula i am trying to make for a mark book. I have a work book, with a sheet labelled "Master" that contains students unique reference numbers in col A2, their names B2/C2 and then the four subjects they study in col D2,E2,F2 and G2. I also then have separate sheets for each individual subject.
I would like to look up the subjects on the master sheet (in the four columns) and if "Maths" is a subject a student takes in one of those columns, i would like the corresponding student name and reference from that row to be copied and pasted into the sheet "Maths" so further information can be entered regarding that subject/student and class.
I have tried working with a IF and MATCH formula but it seems to get quite complex, as I have over 400 students who each have four subjects, and the subjects can appear in anyone of the four subject columns.
Any suggestions?
TIA!
There are two possible solutions, the easiest is:
In the Math sheet, insert this:
[cell B2]
[cell C2]
And drag them down trough the document ...
Here is a sample test I made:
Students sheet:
Result (Math sheet):
You can also create a query:
Note: This works at least in Google Spreadsheet, I don't have MS Office to test this in Excel.
Result:
The easiest solution would be to filter columns D2,E2,F2,G2 then copy/paste results to different worksheets. If you want this to be done autmatically, you'll need to write a macro. Regards,
edit: Move your data to a sheet called "Main" and alt+F11 to open visual basic editor, insert>modules, select module and paste this code below and save. alt+F8 to open macros and run ProcessList Macro, it will create your sheets automatically.