If you meant to average the middle cells excluding the topmost and the bottommost.. then try:

=AVERAGE(INDEX(A1:A6,2):INDEX(A1:A6,COUNT(A1:A6)-1))