I am trying to follow the answer here to answer my question. I have data like this:
Columns A and B are my data. I want to aggregate the data in columns A and B for every integer value in A by averaging the values in column B. So for every value in A that starts with a 17 I want an average of the 4 corresponding values in B and so on. Here is what I have tried. In column C I round column A down to the nearest integer.
In column D I use =UNIQUE(C1:C11466) to get only the unique values in C. Then in column E I am using =AVERAGEIF($C$1:$C$11466,D1#,$B$1:$B$11466) but you can see it isn't working. I'm reproducing the answer in the link (I think) but I'm not sure why it is not working.
I think there should be an easier way to do this but so far this method is the closest I've gotten. I would prefer to not use pivot tables unless there is no other way, I understand that may work also.

Try using the following formula here:
Also if applicable one can use
GROUPBY()Edit - Here is as per OP's comments:
And using
GROUPBY()The formula using
MAKEARRAY()can be made bit shorter, I have added an additionalLET()function within it to make it understandable.