Hi lbkubic,
There is a formula in excel that will do this for you, at lest if my interpretation of your post is correct. All you need is a formula to sum the total available marks from when the student started?
If this is the case then you can use an if statement, or rather many if statements nested together (this works in excel 2003 i assume it will work for previous versions also)
The way excel uses if statements is of the form IF [logical test] THEN [if test is true] ELSE [if test is false]. The syntax for this in excel is IF([test],[then part],[else part])
so here is what you need. the first test is of the first column of the attendance row. if this is an "n" then you want to test the next column in the attendance row to see if that is also an "n", this is where the nesting takes place. if it is not an "n" (this is the else part) then you want to sum all values in the available marks row. I have done a test run on a much smaller database the layout was available marks from c5 to g5, actual marks from c6 to g6, and attendance from c7 to g7. the formula i used is below
=IF(C7="n",IF(D7="n",IF(E7="n",IF(F7="n","hi",SUM(F5:G5)),SUM(E5:G5)),SUM(D5:G5)),SUM(C5:G5))
What the formula does is sums all of the values after the last n, but will only work if there is a run of n's from the start of the marking. ie all n's first, followed by something other than n's
I realise this isnt too easy to read! i stopped nesting the IF statement at f7, so this is the middle statement.
I couldnt find a way round having to check each of the cells, but once the fomula is written autofill should help you out for the other students.
I hope this helps, and if your unsure, ill try and be a little clearer!
Terra