Hi All,
I have 2 columns - A & B, both range for approx 30,000 rows. Column A contains numbers, Col. B is a helper with 1 or 0. In column C,D,E,F - I want to calculate the average for each quartile (or 1st 25%, 2nd 25%, 3rd 25%, and 4th 25%) of cells in column A, but the range is from every time 1 appears in column B till the next 1 appears in column B (thus the range of each last quartile will be till the last zero before the next 1 appears in column B).
To do a COUNTIF with similar conditions I use the following formula,
IF(AND(U2=1,COUNTIF(U3:U$40000,1)),COUNTIF((L2:INDEX(L3:INDEX(L3:L40000,INT((MATCH(1,U3:U40000,0)-1)/4)),)),">0"),"")
Can't get around finding the average. Please help!
Thanks a ton,
Dex
Bookmarks