Specialist
New Member
Hello guys,
I have to find a dynamic formula to match outflows with inflows based on given "Product" and "amount" and which returns the date to which that outflows was associated with the relative inflow (return = date of the inflow associated).
Therefore if some outflows perfectly matches with one inflow (outflow 1 + outflow 2 = inflow 1), the next outflow (e.g. 2nd/3rd/4th) should match with the second inflow based on the earliest date (that's the hard part because it would mean to check whether inflow 1 has still space to "contain" the next inflow, otherwise it moves to the next inflow).
At the same time the date of the date of outflow can't be earlier than the date of the inflow to be associated.
The output is the attribution date (based on the inflow associated).
I attached this excel to help you with the exlpanation
I have to find a dynamic formula to match outflows with inflows based on given "Product" and "amount" and which returns the date to which that outflows was associated with the relative inflow (return = date of the inflow associated).
Therefore if some outflows perfectly matches with one inflow (outflow 1 + outflow 2 = inflow 1), the next outflow (e.g. 2nd/3rd/4th) should match with the second inflow based on the earliest date (that's the hard part because it would mean to check whether inflow 1 has still space to "contain" the next inflow, otherwise it moves to the next inflow).
At the same time the date of the date of outflow can't be earlier than the date of the inflow to be associated.
The output is the attribution date (based on the inflow associated).
I attached this excel to help you with the exlpanation