+ Reply to Thread
Results 1 to 7 of 7

need formula to show positive withdrawal as "0"

  1. #1
    Registered User
    Join Date
    06-13-2013
    Location
    Charleston, SC
    MS-Off Ver
    Excel 2010
    Posts
    75

    need formula to show positive withdrawal as "0"

    I am finishing up a retirement calculator and have the situation where my formula is computing how much of the 401K withdrawal to subtract from the beginning 401k balance the next year. As an example, my beginning 401K balance in year 2 = end 401K balance year 1 minus 401k withdrawal in year 1. This works fine for years when there is an actual withdrawal. I am showing my withdrawals as (negative numbers) and "adding" that column back as described.

    The problem is that in years where annual income exceeds retirement withdrawal needed, it computes a POSITIVE withdrawal. I do not know how to adjust the formula to add another condition so that when r21>0, it should not be added.

    column g= end 401k balance
    column r = 401k withdrawal
    yr1= line 21

    beg 401k balance yr2(line 22)=IF(ISNUMBER(R21),(G21+R21),G21)

    Thanks

    Screenshot attached.
    HR
    Attached Files Attached Files
    Last edited by hmr2662; 04-03-2014 at 10:04 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: need formula to show positive withdrawal as "0"

    any formula you have if you want to show -ve or 0 if positive
    wrap it in min()
    =min(your formula,0) so it will only show -ves or zero
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    06-13-2013
    Location
    Charleston, SC
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: need formula to show positive withdrawal as "0"

    That did not work. I used this formula in the 401k withdrawal column (column R) as you suggested:

    =MIN(IF(ISNUMBER(T21),(T21*0.75),0))

    It is still displaying withdrawals that are positive numbers. Did I do something wrong?
    HR

  4. #4
    Registered User
    Join Date
    06-13-2013
    Location
    Charleston, SC
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: need formula to show positive withdrawal as "0"

    Re: Formula Which Will Only Show A Positive Profit And Remain Blank When Negative Profit


    I found this from a similar post below and it may work but I do not know how to write the conditional formula so it evaluates where it will only show the calculated value when (formula)<0. Help please: I get confused with where to put all the parentheses!

    IF((ISNUMBER(T21),(T21*0.75),0)))<0,t21*0.75,0) ??????

    If you have an existing formula that does the calculation, you can plug it in here

    =IF(profit>0,profit,"")

    Just replace both occurances of profit with your existing calculation

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: need formula to show positive withdrawal as "0"

    =min(if(isnumber(t21),(t21*0.75),0),0)

  6. #6
    Registered User
    Join Date
    06-13-2013
    Location
    Charleston, SC
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: need formula to show positive withdrawal as "0"

    Martin,

    Thanks, that worked! I also toyed around with another formula that worked as well. I will update post as solved. That is good to know about the syntax for min with an isnumber function. This is very useful in excel.
    =IF(AND(ISNUMBER(T21),T21<0),(T21*0.75),"")
    HR

  7. #7
    Registered User
    Join Date
    06-13-2013
    Location
    Charleston, SC
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: need formula to show positive withdrawal as "0"

    Martin,
    I am trying to add to your reputation as thanks but not sure how to do it.
    HR

+ 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. Replies: 3
    Last Post: 01-02-2014, 02:15 PM
  2. Replies: 9
    Last Post: 11-06-2012, 08:59 AM
  3. Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)" not working
    By redders in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2011, 03:52 PM
  4. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  5. conditional formula to show "open" or "closed"
    By SBS in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-27-2006, 09:50 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