I have a dashboard sheet which calculates the sales totals for each month (from an separate invoice sheet) based on a financial year start date. I type in the financial year start date into a cell (A1) and A2,A13 etc calculates each month for that year starting with the start date. Column B the uses SUMIFS to total the sales for each of those months (this bit all works fine).
What I want to do is work out the monthly invoice average for the completed months and for this to auto calculate each time a completed month ends. So for example I want in Cell D1 the average for the 5 completed months so far this year (Jan-May) even though Col A has all the way to Dec 2022. The current Month (June) needs to be ignored in the average formula as it is updating each time an invoice is added to the invoice sheet and therefore throws out the average calculation. I can easily ignore the future months as these are zero but I'm looking to also exclude the current month as well (but this isn't zero).
I also need the average formula to include June when we tip over into July, but then exclude July as that will have a non-zero invoice total as the month progresses.
Hope that makes sense
What I want to do is work out the monthly invoice average for the completed months and for this to auto calculate each time a completed month ends. So for example I want in Cell D1 the average for the 5 completed months so far this year (Jan-May) even though Col A has all the way to Dec 2022. The current Month (June) needs to be ignored in the average formula as it is updating each time an invoice is added to the invoice sheet and therefore throws out the average calculation. I can easily ignore the future months as these are zero but I'm looking to also exclude the current month as well (but this isn't zero).
I also need the average formula to include June when we tip over into July, but then exclude July as that will have a non-zero invoice total as the month progresses.
Hope that makes sense