• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

When an amount reaches a max amount then zero after that

Status
Not open for further replies.

rajkenya1

Member
Hi Guys

I need help on a formula. In the attached spreadsheet i need a formula say starting from cell C6 which says if the amount in that cell reaches total loan amount of $8m then the next cell to cell d7 should be zero.

Please help
 

Attachments

  • Book1.xlsx
    8.9 KB · Views: 11
I have tried a formula in the attached sheet but it doesnt work. If someone can please help. Thank you
 

Attachments

  • Book1.xlsx
    10.1 KB · Views: 8
rajkenya1
Please, reread Forum Rules
... and You should remember soon few basic steps which are for You too.
 
It also depends on the version of Excel that you are using. Assuming 365
Code:
= LET(
  accumulated, SUMIFS(drawdown, year, "<="&year),
  IF(accumulated<LoanAmount, accumulated, LoanAmount))
should work but, in future, so would
Code:
= SCAN(0,year,
    LAMBDA(acc,yr,
      MIN(acc+XLOOKUP(yr,year,drawdown), LoanAmount)
    )
  )
 

Attachments

  • BoundedAccumulation.xlsx
    13.4 KB · Views: 8
Thank you so much

Although have never seen a formula like this.

Cheers for your help


It also depends on the version of Excel that you are using. Assuming 365
Code:
= LET(
  accumulated, SUMIFS(drawdown, year, "<="&year),
  IF(accumulated<LoanAmount, accumulated, LoanAmount))
should work but, in future, so would
Code:
= SCAN(0,year,
    LAMBDA(acc,yr,
      MIN(acc+XLOOKUP(yr,year,drawdown), LoanAmount)
    )
  )
 
Thank you so much for your reply and sharing your knowledge. Much appreciated.

rajkenya1
Please, reread Forum Rules
... and You should remember soon few basic steps which are for You too.
 
Thank you so much for your reply and sharing your knowledge. Much appreciated.
Is that the equivalent of " I don't give a **** ***** cross posting rules?" ?
moderator: Maybe that OP do not understand that everywhere are rules.
 
Thank you so much

Although have never seen a formula like this.

Cheers for your help
Not surprising. I post the solutions I use and care little for 'standard' spreadsheet practice. A version that should work on legacy Excel is
Code:
= IF(
     SUMIFS(drawdown, year, "<="&year) < LoanAmount,
     SUMIFS(drawdown, year, "<="&year),
     LoanAmount
  )

By the way, do post the solution you go with to each of the other forums you have asked for help. That way members need not spend time trying to develop solutions that you no longer require. I know it requires additional effort, but there is no harm in staying on good terms with those that have tried to help.
 
I dont understand why you are using such language against genuine people like me.

Have you got something against me?

Is that the equivalent of " I don't give a **** ***** cross posting rules?" ?
moderator: Maybe that OP do not understand that everywhere are rules.
 
Status
Not open for further replies.
Back
Top