Hi All,
I’m trying to figure out a way that I can write a formula to “split” an amount of income received in a single bank account between two “virtual accounts” that the account looks after. Throughout a period there will be deposits and withdrawals which can be ascribed to a particular “virtual account” and I want to apportion the interest received on the whole balance between the two “virtual accounts” according to balance (I suppose essentially on a daily basis).
For example, at the end of a period (most probably quarterly) the account will receive an amount of interest (say $100) and the account has had the following transactions…
Jan 1 Deposit $5000 (for virtual account 1)
Jan 28 Deposit $3000 (for virtual account 2)
Feb 16 Withdrawal $1000 (from virtual account 1)
The end balance is $7000 (1=$4000 and 2=$3000) but account 1 has had more invested for longer than account 2. I could easily apportion the interest based on closing balance but if virtual account 2 deposited $100,000 on the last day before interest was calculated the resulting apportionment would be way out of kilter?
Can anyone give me some guidance on a cell calculation I should use?
Thanks,
Stuart