Hello Oorang,
I'm not quite sure I'm with you - you can get the average for a specific account with something like
=AVERAGE(IF(A$1:A$100=C1,B$1:B$100))
confirmed with CTRL+SHIFT+ENTER, where C1 contains the specific account number
or
=SUMIF(A$1:A$100,C1,B$1:B$100)/COUNTIF(A$1:A$100,C1)