Forum Discussion
excel formula assist
- Jan 17, 2024
If you're looking to 'staircase' the payments like this:
The attached workbook will continue to do this even if you go beyond 12 months.
It's do-able. My concern with 12 months is for each month the final month that a payment is made is going to shift 1 to the right.
If the plan is 8 years and payments are made quarterly, can each of those months be paid off in 8 years if we follow the same pattern of: down payment (5% of sales), contract payment (10% of sales), quarterly payments?
- Patrick2788Jan 16, 2024Silver Contributor
I created a Lambda to generate the full 12 months:
'PaySched(salesmonths,sales,downpayment,contractpayment,years) =LET( n, COUNTA(salesmonths), payments, years * 4 - 1, width, years * 12 + (n + 2), start_date, MIN(salesmonths), dates, DATE(YEAR(start_date), MONTH(start_date) + SEQUENCE(, width, 0), 1), GetPayments, LAMBDA(a, v, LET( sales_amt, XLOOKUP(v, salesmonths, sales), down_amt, sales_amt * downpayment, contract_amt, sales_amt * contractpayment, remaining, sales_amt - (down_amt + contract_amt), quarterly_payment, remaining / payments, resized, EXPAND(EXPAND(quarterly_payment, , payments, quarterly_payment), 3, , 0), quarterly_arr, TOROW(resized, , 1), upfront, HSTACK(down_amt, 0, 0, contract_amt, 0, 0), padding, EXPAND(0, , MONTH(v) - 1, 0), all_payments, HSTACK(upfront, quarterly_arr), outcome, IF(MONTH(v) = 1, all_payments, HSTACK(padding, all_payments)), IFERROR(VSTACK(a, outcome), 0) ) ), Payment_Schedule, REDUCE(dates, salesmonths, GetPayments), IF( ROWS(salesmonths) = ROWS(sales), HSTACK(VSTACK("", salesmonths), Payment_Schedule), "Please be sure the number of months selected equals the number of sales figures selected." ) )- Hussein_MohamedJan 16, 2024Brass Contributor
Thank you Mr. Patrick for your valuable assist, when i add lines by modifying the range i notice the below, is it correct or i did something wrong as i have to add a forecasted sales till 2026 by month
Thank you
- Patrick2788Jan 17, 2024Silver Contributor
Are you trying to find totals all the way across for each month? You may have to include the workbook.