Hi all, just been racking my brain on this one for a while. I am trying to get an average of the last 6 months (from the previous month: ex: if it's November then May-October) of data in this list the only thing I can think of is a whole bunch of nested "IF(MONTH(TODAY())=11, AVERAGE(blah:blah, blah:blah), ...) There has to be an easier way to do this I keep loosing track of the numbers and dates and all.
I do understand that at all times a cell must display the average of the previous 6 months results. I assume that say the October figure is updated on November 1 st. Therefore it is very easy to sum the last 6 results and divide by 6
jan
25
feb
32
mar
19
apr
24
today is
may
27
jun
26
10/11/2015
jul
31
aug
36
sep
30
oct
32
30.3
so Oct is last monthly result
nov
dec
there is a formula in cellsE6 to E15 (mar to dec)
the one giving 30.3 is
=IF(AND(D13<>"",D14=""),SUM(D8:D13)/6,"")
as soon as you enter the Nov number, the 30.3 will disappear and the 6 month
average to Nov will appear, hence you can open and print
Hi, based on the examples from post #6 here is another option you could try, note: this is using an array function that requires to be confirmed using CTRL+SHIFT+ENTER.
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.