Formula question

robfo0

Active Member
Joined
Feb 19, 2002
Messages
281
This is related to my question from last week regarding rate format in a formula (thanks to daleyman, Dave and Ivan for answering).

This part of my macro works:
FIRST_RATE.Value = Format(Worksheets("Sheet1").Range("RATE"), "0.00%")

But then when i try to figure a payment using this rate, i get a type mismatch error. Here is the formula I'm trying to use in the macro. (I'll include the definitions of the involved variables also):

FIRST_RATE.Value = Format(Worksheets("Sheet1").Range("RATE"), "0.00%")
AMT_FINAN = Format(Worksheets("Sheet1").Range("TESTVALUE").Value + FIRST_RECFEE, "$#,##0.00")

'The problem is here:
FIRST_NEW_PMT = Format(Pmt(FIRST_RATE.Value / 12, FIRST_TERM, -AMT_FINAN), "$#,##0.00")



I know the FIRST_RATE and AMT_FINAN are defined correctly. If in the definition of FIRST_NEW_PMT, i substitue "0.1299" or some numerical value for FIRST_RATE, the formula works. Can I not use FIRST_RATE because it is formatted as a percent?

Thanks for any help
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,214,382
Messages
6,119,194
Members
448,874
Latest member
Lancelots

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top