+ Reply to Thread
Results 1 to 5 of 5

Subtract 20 repeatedly from an original value until the value reaches zero

  1. #1
    Registered User
    Join Date
    02-24-2018
    Location
    canada
    MS-Off Ver
    2016
    Posts
    1

    Subtract 20 repeatedly from an original value until the value reaches zero

    I am a professed excel noob and so I need help writing this function. I need to write a function where a column of values will subtract from an original value until the value reaches zero.

    If my original value is 125, I need the following table to look like this

    B1 20
    B2 20
    B3 20
    B4 20
    B5 20
    B6 20
    B7 5

    I need the function to be generic so that I can start with any original value and the function will show 20 in the column cells until the value reaches less than 20 in the final cell.

    hope this makes sense.
    Last edited by excel_noob14; 02-24-2018 at 11:51 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,421

    Re: IF/SUM function help

    Welcome to the forum! Please take a moment to re-read forum rule #1 and then amend your thread title to something that better explains your problem. Changing your thread title is not optional, which means you must change it. Thanks!

    • Use concise, accurate thread titles.
    • Your post title should describe your problem, not your anticipated solution.
    • Use terms appropriate to a Google search - poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice tell us nothing.
    • Responding to a request to change your thread title by doing so is mandatory.

    To change a title go to your first post, click EDIT then Go Advanced and change your title.

    No help to be offered, please, until the OP complies with this request.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Subtract 20 repeatedly from an original value until the value reaches zero

    Enter formula in A3 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 125 Total Amount
    2 20 Min
    3 20
    4 20
    5 20
    6 20
    7 20
    8 5
    9
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: Subtract 20 repeatedly from an original value until the value reaches zero

    excel_noob14,

    You have put this same problem on another site and it has already been fixed.

    https://www.mrexcel.com/forum/excel-...ml#post5016282

    When you do this let people know that you asked the same question on another site as well.

    Forum Rule
    8. Don't cross-post without a link. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post. Expect cross-posts without a link to be closed.

    We hope you understand.

    Have a nice day!
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,421

    Re: Subtract 20 repeatedly from an original value until the value reaches zero

    Thank you for your thread title. As you have also cross-posted without telling us, please take a moment to read our forum rules: there are not many, but we must ALL abide by them for the benefit of all who post here.

    Thank you for your co-operation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Subtract Max Until Balance Reaches Zero
    By FinanceGQ in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-25-2016, 02:15 PM
  2. Formula -- subtract date, delete original column?
    By mlengel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-14-2013, 12:58 PM
  3. [SOLVED] How to subtract multiple cells from a cell and report soldout when main number reaches 0
    By QuietForce in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-02-2012, 01:43 AM
  4. If Sat subtract one day, if Sunday subtract tow days
    By Wskip49 in forum Excel General
    Replies: 3
    Last Post: 06-30-2012, 03:35 PM
  5. Repeatedly Using 'ShowAllData'
    By JONNY981 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-29-2009, 11:24 AM
  6. keeping original sheets as original
    By stevesunfold in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-04-2008, 05:33 AM
  7. Replies: 1
    Last Post: 08-15-2005, 06:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1