in the worksheet named 'compare', i need to sum the MONTHLY TOTAL TO DATE FOR THIS YEAR AND COMPARE WITH LAST YEAR FOR THE SAME PERIOD. These month to date totals are needed for 5 seperate shops (in column E..'TYPE') The red '?' indicate where I need the formula). All the sales data are in the tab 'Customer orders' with the shop type in column A.
NB, that todays day of month is 1 day earlier than same day last year, ie ...todays month to date figures for this year would be summing all sales from August 1st 2018 to today August 24 2018, but for last year we would be summing August 1st 2017 to August 25th 2017...
Solved by O. S. in 22 mins