I need to find the simple moving average with a condition if J1 is 9 then it has to calculate from E2:E10 and put in G10
If the given value is 15 then the result has to for 15 periods SMA
While changing the SMA value then the range has to change and given SMA has to result