I'm trying to create a moving average of a W/L average that works with visible cells only. After a lot of research I finally found out how to create a function that works on visible cells only by using the sum product with offset function to give me a straight average.
=(SUMPRODUCT(SUBTOTAL(3,OFFSET(Table12[Net P/L],ROW(Table12[Net P/L])-ROW(I10),0,1)),--(Table12[Net P/L]>0))/SUBTOTAL(3,(Table12[Net P/L])) )
I now want to make that a moving average, but when I change the height in the offset reference I get either "#ref" or "#value", what do I need to change to get a moving average of a specific amount of cells. For this example let's say that # of cells is 10. So I want the average of the last 10 visible cells only. Is it as simple as just changing a number above? Or is it a completely different setup.
Also I'm new to Excel, I just started teaching myself the ins & outs a couple weeks ago to make my life easier, so please do not expect me to know certain things.
If more information is needed to provide me with the solution, please let me know.
Bookmarks