# Need help cleaning up a formula

#### EssKayKay

##### Board Regular
I have a formula in a worksheet provided by others. I’d like assistance to clean it up. I no longer need to include reference to a couple options – “Acc Weekly” and “Acc Bi-Weekly”. I like to remove reference to both of these in the following formula.

IF(F8>0,(IF(\$F\$12="Acc Bi-Weekly",ROUND((-PMT((((1+Amortize!F7/CP)^(CP/12))-1),term*12,loan_amount))/2,2),IF(\$F\$12="Acc Weekly",ROUND((-PMT((((1+Amortize!F7/CP)^(CP/12))-1),term*12,loan_amount))/4,2),ROUND(-PMT(((1+F7/CP)^(CP/periods_per_year))-1,nper,loan_amount),2)))),0)

Thanks,
SKK

### Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

#### joeu2004

##### Well-known Member
I think you want:

IF(F8>0, ROUND(PMT((1+F7/CP)^(CP/periods_per_year)-1, nper, -loan_amount), 2), 0)

But I'm not sure that is mathematically correct. I suggest that you provide a numerical example, if you would like another set of eyes to vet the calculation.

Provide values for CP, periods_per_year, nper, loan_amount, F7 and F8, and describe their purpose. For example, obviously nper is "number of payments" (periods). What is CP, and how do they differ?

If any are calculated, be sure to provide referenced values.

Also, identify your region and whether the loan is for a mortgage or something else. Are you sure that the annual rate (F7) is expressed as a compounded rate?

Last edited:

#### EssKayKay

##### Board Regular
I think you want:

IF(F8>0, ROUND(PMT((1+F7/CP)^(CP/periods_per_year)-1, nper, -loan_amount), 2), 0)

But I'm not sure that is mathematically correct. I suggest that you provide a numerical example, if you would like another set of eyes to vet the calculation.

Provide values for CP, periods_per_year, nper, loan_amount, F7 and F8, and describe their purpose. For example, obviously nper is "number of payments" (periods). What is CP, and how do they differ?

If any are calculated, be sure to provide referenced values.

Also, identify your region and whether the loan is for a mortgage or something else. Are you sure that the annual rate (F7) is expressed as a compounded rate?

Hey Joeu,

This appears to be doing exactly what I had in mind. You truly are a gentleman and a scholar.

Thank you very much,
Steve K.

Replies
1
Views
104
Replies
4
Views
166
Replies
0
Views
105
Replies
3
Views
64
Replies
3
Views
171

1,109,362
Messages
5,528,258
Members
409,811
Latest member
pjwhyman

### This Week's Hot Topics

• Change military grades into rank
Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
• VBA COUNTIF SOLUTION
Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
• INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...