complicated vlookup / if then / max value nesting

willowshade

New Member
Joined
Jul 19, 2011
Messages
1
I cannot say how many times I have ended up here looking for answers, and I usually find them. This time, I am trying to work what seems to me to be a very complicated problem. If I can get the formula right, it will save me dozens of hours a week.

I run a virtual lab, and not all of the programs we use have usable gradebooks, so I have to create my own. I end up creating 37 courses per grading cycle, and have students enrolled in all of them. The program will let me download a progress report in PDF, and I can hand enter everything, or as a CSV. I want to create a formula to let me use the CSV (saved as an excel workbook) and vlookup to automatically catch the grades and enter them into the gradebooks I create (I love macros for creating those).

So I have two excel workbooks, Gradebook, and Student Progress Reports. Gradebook changes frequently, but I can use a template to cut and paste the desired sections. Student Progress Reports is saved over every time I run it and I DO NOT want previos information to disappear if it is no longer in the new run.

I am including small samples of the workbooks.

Gradebook - a collection of worksheets for each core subject and electives.

Excel Workbook
ABCDEF
1Algebra 1ASSTOTNotes -A1231Quiz -A1232
2Last NameFirst NameIDAlgebraic ExpressionsAlgebraic ExpressionsQuiz: Algebraic Expressions
3LopezClaudette1234567
Math

Excel Workbook
ABCDEFGH
67ClaudetteGLopez1234567Quiz: Algebraic ExpressionsA123220%Failed
68ClaudetteGLopez1234567Quiz: Algebraic ExpressionsA123220%Failed
69ClaudetteGLopez1234567Quiz: Algebraic ExpressionsA123210%Failed
70ClaudetteGLopez1234567Algebraic ExpressionsA1231N/ANo Score
71ClaudetteGLopez1234567Algebraic ExpressionsA1231N/ANo Score
72ClaudetteGLopez1234567Quiz: Algebraic ExpressionsA123280%Passed
73ClaudetteGLopez1234567Equations with Variables on Both SidesA1331N/ANo Score
Excel 2007 Student Progress Report - one massive page with all student work - can be run as smaller reports divided by course but that means running 37 different reports Student_Progress_Report
Excel 2007

I did take out a lot of extraneous columns to make it easier to see the relevant info.

So here is the dilema. The reports can include hundreds of kids in dozens of different courses, so am thinking I need to use an If then statement to match the ID numbers (columns C and D respectively) before looking at any further information. Once that is settled, I need vlookup to find the assignment names from row 2 in gradebooks, and match it to the name in column E in student progress reports. And since, as you can see, the students can take the same quiz up to 3 times, I need to to choose the max value from there.

In the workbook examples above, Claudette failed the test 3 times, then rewatched the videos, took better notes, and got help from a teacher. When she retook the quiz on her last chance, she got an 80. I want to take that 80, and put it in the right place in the gradebook and those 20s do not need to count.

I am currently hand entering everything, and as the program grows, so does my stress level, and it keeps me from being able to get other people to use the program for remediation in their own classes, because they dont want to search the progress reports for the grades.

I know this can be done, but the nesting is giving me massive headaches, so I was hoping that someone with more experience could help me find the solution. I am open to changing the methods I use, to trying anything to make keeping the grade records easier.

I have tried using a variety of nests, but I cannot get the right results returned, and that is using a pared down version, not even a full scale grading cycle.

I prefer using 2007 excel, if that makes a difference.

THank you in advance for anything anyone can do to help me.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,224,586
Messages
6,179,719
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top