Thanks, SUMIFS is what I was looking for.
Now on to a more complex issue.
Flag=0 means there is no partial payment.
I need to extend the SUMIFS formula to calculate the expense (Amount) for the following n months, where the value is divided (paid off) during the n months .
Result should be:
The From-To intervals are manually created, so the only thing that should be calculated is the "Amount".
The "From" and "To" intervals are the date1 and date2 from the beginning of this thread.
I was thinking of adding some kind of condition inside the SUMIFS, such as (not working): SUMIFS(Monthly,Date,">="&From,Date,"<="&To,Flag,1,Months,">"&MONTH(From-Date))?
Any help appreciated.
Bookmarks