Hi there,
I'm trying to solve problems with the LET function and with a new challenge I'm stuck again. I have some investment assumptions, for which I would like to create a table that shows when how much interest is earnt/paid. Screenshot 1 has the assumption, Screenshot 2 what I want to achieve.
Interest days are the diff between payment days (and in the case of the first payment diff between payment date and investment start). Invest1Pay is. range B11:B14 and contains the interest payment dates.
As the second screenshot shows, I can't get the loop working. The current formula is as follows:
=LET(
invest,B5,
start, B6,
end, B8,
a_rate, B9,
d_rate, a_rate/365,
p_day, VSTACK(Invest1Pay),
int_days,p_day-p_day,
p_count,COUNT(p_day),
int_paid, d_rate*int_days*invest,
VSTACK(
VSTACK({"Amount","Start","End","Annual Rate","Daily Rate","Pay Date","Interest Days","Interest Paid"}),
HSTACK(invest, start,end, a_rate, d_rate,p_day,int_days, int_paid)
))
Thank You so much everyone for assisting on this.
Cheers H
I'm trying to solve problems with the LET function and with a new challenge I'm stuck again. I have some investment assumptions, for which I would like to create a table that shows when how much interest is earnt/paid. Screenshot 1 has the assumption, Screenshot 2 what I want to achieve.
Interest days are the diff between payment days (and in the case of the first payment diff between payment date and investment start). Invest1Pay is. range B11:B14 and contains the interest payment dates.
As the second screenshot shows, I can't get the loop working. The current formula is as follows:
=LET(
invest,B5,
start, B6,
end, B8,
a_rate, B9,
d_rate, a_rate/365,
p_day, VSTACK(Invest1Pay),
int_days,p_day-p_day,
p_count,COUNT(p_day),
int_paid, d_rate*int_days*invest,
VSTACK(
VSTACK({"Amount","Start","End","Annual Rate","Daily Rate","Pay Date","Interest Days","Interest Paid"}),
HSTACK(invest, start,end, a_rate, d_rate,p_day,int_days, int_paid)
))
Thank You so much everyone for assisting on this.
Cheers H