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.
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.
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!
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.
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.
Thanks I will work with that! I just didn't want to have to change every cell individually to the end
You only need to change the formulae in one column, column C, then copy right
what is with the -2? I would put the column letter in right? so if(column(c) but I don't understand the -2.
=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
ahhh the light bulb has come on! Thank you for your help! I got it!
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
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.
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
Sorry about that!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks