Page 1 of 1

Excel query 6

Posted: Sun Nov 23, 2025 11:20 am
by sna
Dear all,
I need your input to find payback period for projects upon cumulative cash flow

Pls find the attached to refer to input n output

Thanks

Re: Excel query 6

Posted: Tue Nov 25, 2025 7:25 pm
by norkaz
....

Kindly provide the criteria required to resolve the loan schedule.

The formula will be developed according to the specifications provided.


Bigcat9Excel
BKK Thailand.

Re: Excel query 6

Posted: Tue Nov 25, 2025 8:15 pm
by snasui
:D Feel free to give this formula a try.

Code: Select all

=LET(
  cf, N(+B4:E9),
  year, --SUBSTITUTE(A4:A9,"Year ",""),
  rate, $H$2,
  HSTACK(
    TRANSPOSE(
      BYCOL(
        cf,
        LAMBDA(col,
          LET(
            acmcf, SCAN(0, col, LAMBDA(x,y,x+y)),
            idx, SUM(--(acmcf<=0)) + 1,
            IF(
              idx > ROWS(col),
              "No Payback",
              INDEX(year, idx) - INDEX(acmcf, idx)/INDEX(col, idx)
            )
          )
        )
      )
    ),
    TRANSPOSE(
      BYCOL(
        cf,
        LAMBDA(col,
          LET(
            disc, col/(1+rate)^year,
            acmdisc, SCAN(0, disc, LAMBDA(x,y,x+y)),
            idxd, SUM(--(acmdisc<=0)) + 1,
            IF(
              idxd > ROWS(col),
              "No DPB",
              INDEX(year, idxd) - INDEX(acmdisc, idxd)/INDEX(disc, idxd)
            )
          )
        )
      )
    )
  )
)
Please refer to the attached file in this link for the Payback Period formula. :arrow: https://www.snasui.com/viewtopic.php?style=3&t=247

Re: Excel query 6

Posted: Tue Nov 25, 2025 11:22 pm
by sna
Thank you 🙏