Trouble with moving average test

Kauri

New Member
Joined
Oct 2, 2023
Messages
6
Office Version
  1. 2021
Platform
  1. Windows
Hello,
I am having a challenge with formulas for a Moving Average test I am trying to conduct and after a long
time of working on this I am not sure if what I want to do is possible.
At present my worksheet contains 8 columns (A to H) and 519 rows
The data begins in row 17 and I import it from another worksheet between the dates I specify in cells B10 & B11
1696230112000.png


I am wanting to enter the first Moving average in cell F1 and the second in cell G2 with column H showing the value of the cross.
For the MA formulas I have used in F2 =IF(COUNTBLANK($A17:$E17)>0,"",ROUND(AVERAGE(E17*$F$2),4))
And in G2 =IF(COUNTBLANK($A17:$E17)>0,"",ROUND(AVERAGE(E17*$G$2),4))
But this is just multiplying the individual cell numbers in the column.
I hope this makes sense.
Does anyone have any ideas please?
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
hi, welcome to the forum.
Would you be kind enough to post your data using the xl2bb add in (Link below) or just paste as a table.
Your image has only 5 columns yet you mention there are columns A:H, and you have a references to a in A:E, F and G.
While your image is helpful in describing your question it does not help the forum answer your question as accurately or as easily as possible.
With images the forum needs to enter your date/time stamps manually which is time consuming and can have errors.
Please help the forum help you.

Thanks in advance.
 
Upvote 0
Hello, Thank you for your welcome and your reply.
I have followed instructions on xl2bb but not sure if below is what is supposed to happen,
No, another error message, too much data.
$A$519Fast
MA
Slow
MA
11
Enter Start Date1/07/2021
Enter End Date30/06/2023
DATEOPENHIGHLOWCLOSE
1/07/20214294.254312.004286.004309.50
4309.50​
4309.50​
2/07/20214309.754347.004308.004338.75
4338.75​
4338.75​
6/07/20214341.004348.004305.254328.25
4328.25​
4328.25​
7/07/20214328.004353.254320.254351.75
4351.75​
4351.75​
8/07/20214352.254352.254279.254310.25
4310.25​
4310.25​
9/07/20214310.254364.004293.254362.00
4362.00​
4362.00​
12/07/20214362.004379.254341.754375.75
4375.75​
4375.75​
I appreciate your time in helping, thank you.

 
Upvote 0
Hello, Thank you to all who looked at this post.
I have now solved with named cells and AVERAGE formula but in different cells than I started out wanting to use.
Happy formulas all ☺
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top