Hi all,
I have about 400000 rows and 6 columns, column B with numbers. The numbers in column B have to be averaged, 50 each. And about 900-1200 rows in column B have the same serial number in column C. I want to get average of 50 rows each and output them in different columns based on number in column C.
Say, column C has "1" for 1000 rows in column B, I need to get averages of B1-B50, B51-B100,.....,B951-B1000 in say column H. Then in column I, the averages of numbers have to start from B1001(where the column C has "2" till say B1150) and so on it goes till the the serial numbers in C end at 336/337 and columns till ME/MF.
I have got the averages of 1-50, 51-100,.... by the formula given by one of the users here, "=AVERAGE(INDEX(B:B,2+50*(ROWS($J$2:J2)-1)):INDEX(B:B,2+50*(ROWS($J$2:J2))))" and then dragging it but it doesn't work with creating columns as it goes to become "=AVERAGE(INDEX(C:C,2+50*(ROWS($J$2:K2)-1)):INDEX(C:C,2+50*(ROWS($J$2:K2))))" and along with this, the problem is that the number of rows in column B that have same serial number in column C are not integral multiples of 50.
Can anybody help? I can show you on skype if you help out.
It will be a great help if somebody can help.
Thank You.
Bookmarks