So, we are talking about addition now, not multiplication - makes more
sense. Enter this formula in C22:
=SUMIF(B$1:B$20,G1,E$1:E$20)
I have assumed you have 20 rows of data starting in row 1, so adjust
these as necessary and copy the formula down into C23, C24 etc., as
required.
Basically, the formula says to look through each element of the first
array (B1:B20) and if the contents are the same as G1 then add up the
corresponding cell from column E. As you copy the formula down, G1
becomes G2, then G3 etc, so you get the totals that correspond to
these accounts.
Hope this helps (finally).
Pete