I have been trying to average out values in column 1 into the values as mentioned in column 2. For example if: there are 10 12100 values, so individual average is 1210 There are 5 4550 values, so average is 910
I have used the formula
=A1/COUNTIFS(A:A,A1)
But, it does not seem to work for the repeated values in one column. The second picture explains the problem. It is taking into consideration all the duplicates in the list and then giving me an average. What I want instead is the average of the numbers repeating consecutively. Implying, if 3615 repeats 4 times in column A1 to A4 I should get 903.75 in B1 to B4. Also, If it is repeating again in A24 to A28, I should be able to get 903.75 in B24 to B28.
But, now it is giving me 451.88.


