Have attached an example, basically need a function that returns a value based on a start and end date, i.e. Forcast(startdate,enddate,
amount, excluded month 1, exc month 2, exc month 3, exc month 4).
In the example you will see in Column D a list of dates that amounts go out on, ie 14th or 28th of month etc. Next to this in column E is the amount paid on that date. Now the function will need to work out for each column how many of those payment dates are between the start and end date specified in the function call.
And then times the amount by the number of times that date appears. It then needs to add this total together, and add in the (amount) figure as above and also the income figure which is calculated by number of FRIDAYS between that date times £565.
If the month is one of the excluded dates then it is not included in the calculation for that period, i.e. if I included 2 and 3 as the excluded months then it would not count these.
Columns F to I values right at the bottom show what should be right if the function is working as planned.