+ Reply to Thread
Results 1 to 13 of 13

using if function in an amortization table

  1. #1
    Registered User
    Join Date
    01-10-2010
    Location
    Rexburg, Idaho
    MS-Off Ver
    Excel 2007
    Posts
    5

    using if function in an amortization table

    I am trying to use the if function in an amortization table and I am wondering if there is a way to make it so if I cut the years in half if I can make the table read with 0's or dashes rather than to start counting back up again.
    Last edited by rdcall; 01-12-2010 at 06:00 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: using if function in an amortization table

    Hi rdcall,

    welcome to the forum.

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  3. #3
    Registered User
    Join Date
    01-10-2010
    Location
    Rexburg, Idaho
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: using if function in an amortization table

    Thanks here is a copy of what I am trying to work on. As you can see if my period is ten years it all flows out fine but when I shorten it to five I would like the table to read 0's or dashes rather than go negative. Any help would be great.
    Attached Files Attached Files

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: using if function in an amortization table

    Hi,

    you could compare the number in the Term cell D4 with the current column number adjusted by two cells and wrap your calculation in each cell in this.

    For example
    H9 =IF(COLUMN()-2>$D$4,"",H31)
    H10 ==IF(COLUMN()-2>$D$4,"",H9*$E$5)

    and so on.

  5. #5
    Registered User
    Join Date
    01-10-2010
    Location
    Rexburg, Idaho
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: using if function in an amortization table

    Thanks I will work with that! I just didn't want to have to change every cell individually to the end

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: using if function in an amortization table

    You only need to change the formulae in one column, column C, then copy right

  7. #7
    Registered User
    Join Date
    01-10-2010
    Location
    Rexburg, Idaho
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: using if function in an amortization table

    what is with the -2? I would put the column letter in right? so if(column(c) but I don't understand the -2.

  8. #8
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: using if function in an amortization table

    =column() in column C returns a 3
    =column() in column H returns a 8

    you need to subtract 2 from the respective number to have the correct number to compare with your term number.
    For example, in column H you don't want to see a value if the column is > than the term number, so you calculate the column() for H, which is 8, but subtract 2 to adjust for the two columns A and B, which do not have any calculations, to arrive at 6. So now you see if 6 > 5 and if so, enter a blank.

    On the other hand, since you have numbers in row 8, you might as well use these:

    =if(H$8>$D$4,"",H31)

    note the placement of the $ sign in H$8

  9. #9
    Registered User
    Join Date
    01-10-2010
    Location
    Rexburg, Idaho
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: using if function in an amortization table

    ahhh the light bulb has come on! Thank you for your help! I got it!

  10. #10
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: using if function in an amortization table

    Good feeling, innit?

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  11. #11
    Registered User
    Join Date
    01-31-2015
    Location
    Conway, Arkansas, USA
    MS-Off Ver
    MS Office 2011
    Posts
    4

    Re: using if function in an amortization table

    I am facing a similar problem. My goal is to have entries beyond the 5th period return zero (when the loan is paid off) and we are trying to get cells B11, C11, and D11 to return zero beyond the 5th period, my first thought was writing an IF statement for B11 that said if the Principal Outstanding and the Principal to Date equal each other (meaning the loan has been paid off) then the worksheet should return zero ("") for any periods after that.

    I have tried inputting the formula =if(f15=d15)(""),("25,000") or some derivative of that for B11 but it just returns error. I know that you have to write a formula that does something like that, so if anybody knows what might work better or even understands what I am saying, I'd love to hear your thoughts.

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: using if function in an amortization table

    Trent, welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  13. #13
    Registered User
    Join Date
    01-31-2015
    Location
    Conway, Arkansas, USA
    MS-Off Ver
    MS Office 2011
    Posts
    4

    Re: using if function in an amortization table

    Sorry about that!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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