PMT AND YEARS - AUTOMATIC

Pietro Di Micio

Board Regular
Joined
Apr 29, 2020
Messages
51
Office Version
  1. 365
Platform
  1. MacOS
Hi guys!

I've used the formula to calculate the monthly value of an installment; but, I have 06 columns (2023, 2024, 2025, 2026, 2027 and 2028) to automate the periods, for example: If I put the period of 60 months... I would like the monthly installment in 2023 will be multiplied by 7 (Jun-Dec) and in all other years by 12... in the last year, 2028, by 5 (Jan-May) completing 60 months; BUT if I change the period from 60 to 36, for example, I would like to automatically multiply the PMT by 7 in 2023, 12 in 2024 and 2025 and 5 in 2026, zeroing out the years 2027 and 2028.

Thanks in advance for the help.

Best!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
T202104a.xlsm
ABCDEFGHIJK
19202320242025202620272028
205-May-23607121212125
215-Jul-23605121212127
22
2aa
Cell Formulas
RangeFormula
F20:K21F20=MIN(12,DATEDIF(C20,F$19,"m"),$D20-SUM($E20:E20))
 
Upvote 0
Does the suggestion work for you?
Try reviewing the formula in say cell G20.
 
Upvote 0
I am trying to figure out...

Do you mean =MIN(12;DATEDIF(D21;L$18;"m");$F21-G21) ? because its turning #NUM
 
Upvote 0
E20 is empty.
cell f20 has =MIN(12,DATEDIF(C20,F$19,"m"),$D20-SUM($E20:E20))
Your system may be using different separators etc. than mine.
Try putting my example in a clean sheet. Click on the icon below the f(x) in the header and then move to your sheet and paste at cell A19.

Then try reviewing the formulas with formula evaluate.
 
Upvote 0
Solution
1683584379444.png
 
Upvote 0
#NUM

same error; I am trying to figure out what is wrong but without success, I mean the separator is ; instead of just , (only difference I think)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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