vba quarterly retuns : Can anybody tell me a VBA Function or button that would calculate quarterly returns only on a quarterly basis (i.e., first quarter return is based on January till March returns) without overlapping observations. The function that I'm using now is just the AVERAGE of, for example, returns from January until March, but the actual calculation cell is in April. An example of what I'm asking is in the picture link. I would like the function to run for the time period that I choose.
https://i.stack.imgur.com/dw0BU.png

Thank you very much!

