My overall aim is to create a UDF that results in the output of my filter() function to be in the same column only i.e. vertically only.
In sheet SheetID02 I hardcode when a 'debt' is issued. In Sheet1 all payments and date of payments are found. In SheetID02 I am currently using the filter() function. Thereby, I can retrieve the amount repaid and the date of repayment in the correct date column by filtering for payments between specific dates. As you can see below, the filter function works perfectly for one payment made in February (2017/02).
However, if there have been made two payments in March (2017/03) the output of the filter() function clashes with the next column making it appear as if the second payment in March was made in February.
I am looking to create a user defined function that ensures that the function in cell U12 only outputs in column U. Ideally, what is found in cell V12 and V13 in the picture above should instead appear in U14 and U15.
Any ideas as to how this can be approached is much appreciated! If relevant, see attached file