View Single Post
  #2   Report Post  
shanermuls shanermuls is offline
Junior Member
 
Posts: 20
Default

Quote:
Originally Posted by cs.bonak View Post
I keep a running avg of kids grades in Excel over a 2 week period. The way i have the code now

AVERAGE(OFFSET('1'!E4,COUNTA('1'!D;D)-29,):OFFSET('1'!E4,COUNTA('1'!D;D),))

it returns an error if i don't have 2 weeks of data. I found a way around this by doing this

=IFERROR(AVERAGE(OFFSET('1'!E4,COUNTA('1'!D;D)-29,):OFFSET('1'!E4,COUNTA('1'!D;D),)),IFERROR(...-28...-27...
Im Sure there is a better way to do this any help would be appreciated.

I know that its not supposed to be D;D But when i put the : this showed up D:D so i changed it
If you included dates for the grades, you could use an averageif statement

+averageif(A:A, "="& (A15-13), B:B)

where A:A are the dates of the test scores and B:B are the results

A15 would be the last day of the two week period.

Maybe this wont fit in to your template.