Hi there,
I've tried to recreate two tables which I'm working with below:
[TABLE="width: 1000"]
<tbody>[TR]
[TD]Start Date[/TD]
[TD]Finish Date[/TD]
[TD]Effective Days[/TD]
[TD]Total Amount[/TD]
[TD]Daily Amount[/TD]
[TD][/TD]
[TD]Month[/TD]
[TD]Start of Month[/TD]
[TD]End of Month[/TD]
[TD]Monthly Amount[/TD]
[/TR]
[TR]
[TD]04/09/2019[/TD]
[TD]22/10/2019[/TD]
[TD]49[/TD]
[TD]1000[/TD]
[TD]20.41[/TD]
[TD][/TD]
[TD]Sep-19[/TD]
[TD]01/09/2019[/TD]
[TD]30/09/2019[/TD]
[TD]???[/TD]
[/TR]
[TR]
[TD]15/09/2019[/TD]
[TD]15/10/2019[/TD]
[TD]31[/TD]
[TD]1500[/TD]
[TD]48.39[/TD]
[TD][/TD]
[TD]Oct-19[/TD]
[TD]01/10/2019[/TD]
[TD]31/10/2019[/TD]
[TD]???[/TD]
[/TR]
[TR]
[TD]01/10/2019[/TD]
[TD]24/12/2019[/TD]
[TD]85[/TD]
[TD]2000[/TD]
[TD]23.53[/TD]
[TD][/TD]
[TD]Nov-19[/TD]
[TD]01/11/2019[/TD]
[TD]30/11/2019[/TD]
[TD]???[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Dec-10[/TD]
[TD]01/12/2019[/TD]
[TD]31/12/2019[/TD]
[TD]???[/TD]
[/TR]
</tbody>[/TABLE]
For the sake of this exercise, the first table would be A1:E4 (including headers) and the second table would be G1:J5.
I would like to have a formula which fills in the J column. This would have to go row-by-row in the first table, calculating how many days fall between the Start of Month and End of Month in the second table, multiply that by the amount in the Daily Amount column, then add that to the loop down the rest of the rows.
This is just a sample; unfortunately my real data is much larger!
I've tried to name the topic because I'm pretty confident it'll need an array formula, but I'm quite happy to accept a non-array formula if one exists. It might not be a SUMIFS either which works; that's fine too.
Please help!
I've tried to recreate two tables which I'm working with below:
[TABLE="width: 1000"]
<tbody>[TR]
[TD]Start Date[/TD]
[TD]Finish Date[/TD]
[TD]Effective Days[/TD]
[TD]Total Amount[/TD]
[TD]Daily Amount[/TD]
[TD][/TD]
[TD]Month[/TD]
[TD]Start of Month[/TD]
[TD]End of Month[/TD]
[TD]Monthly Amount[/TD]
[/TR]
[TR]
[TD]04/09/2019[/TD]
[TD]22/10/2019[/TD]
[TD]49[/TD]
[TD]1000[/TD]
[TD]20.41[/TD]
[TD][/TD]
[TD]Sep-19[/TD]
[TD]01/09/2019[/TD]
[TD]30/09/2019[/TD]
[TD]???[/TD]
[/TR]
[TR]
[TD]15/09/2019[/TD]
[TD]15/10/2019[/TD]
[TD]31[/TD]
[TD]1500[/TD]
[TD]48.39[/TD]
[TD][/TD]
[TD]Oct-19[/TD]
[TD]01/10/2019[/TD]
[TD]31/10/2019[/TD]
[TD]???[/TD]
[/TR]
[TR]
[TD]01/10/2019[/TD]
[TD]24/12/2019[/TD]
[TD]85[/TD]
[TD]2000[/TD]
[TD]23.53[/TD]
[TD][/TD]
[TD]Nov-19[/TD]
[TD]01/11/2019[/TD]
[TD]30/11/2019[/TD]
[TD]???[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Dec-10[/TD]
[TD]01/12/2019[/TD]
[TD]31/12/2019[/TD]
[TD]???[/TD]
[/TR]
</tbody>[/TABLE]
For the sake of this exercise, the first table would be A1:E4 (including headers) and the second table would be G1:J5.
I would like to have a formula which fills in the J column. This would have to go row-by-row in the first table, calculating how many days fall between the Start of Month and End of Month in the second table, multiply that by the amount in the Daily Amount column, then add that to the loop down the rest of the rows.
This is just a sample; unfortunately my real data is much larger!
I've tried to name the topic because I'm pretty confident it'll need an array formula, but I'm quite happy to accept a non-array formula if one exists. It might not be a SUMIFS either which works; that's fine too.
Please help!