IF formula

Ali_Toronto

New Member
Joined
Dec 29, 2022
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Hello Everyone,



It’s my first time here, so I would like to thank everyone in advance for bearing with me and helping me out.



Here’s what I’m trying to do … in as simple terms as I can explain … the problem is much complex …



EXAMPLE:

Client has to pay $30,000 (or whatever)

He has 10 months to pay (or whatever)

His monthly payment amount is consistent

How do I calculate his last payment using a formula?



Since I can’t post a spread sheet – here’s how I have it setup



--- A3 TO B14 ---

TOTAL PAYMENT

BASE PAYMENT

PAYMENT 1

PAYMENT 2

PAYMENT 3

PAYMENT 4

PAYMENT 5

PAYMENT 6

PAYMENT 7

PAYMENT 8

PAYMENT 9

PAYMENT 10



--- B3 TO B7 ---

$30,000.00

$9,000.00

=B4

=B4

=IF(SUM($B$5:B6)<$B$3,$B$4,($B$3-(SUM($B$5:B6))))



--- B7 TO B14 --- DRAG AND FILL FORUMLA ABOVE



I’m usually pretty good at performing my own research for excel problems, but I’ve really been stuck on this one for a while – I’ve tried many different formulas, possibilities … but I can’t seem to figure it out ….



In advance, please be nice … I’m no expert at excel.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I didn't get it quite. Is it something like this? B5:
Excel Formula:
=($B$3-$B$4)/COUNTA(A$5:A14)
 
Upvote 0
This includes 365 functions, but that was just to make it easier to put together. The important thing is the use of the PMT function:
Book1
AB
1Total Amount: 30,000.00
2Number of Payments: 4
3Annual Interest Rate: 0
4Payments: 7,500.00
5
6Pmt 1: 7,500.00
7Pmt 2: 7,500.00
8Pmt 3: 7,500.00
9Pmt 4: 7,500.00
Sheet2
Cell Formulas
RangeFormula
B4B4=PMT(B3,B2,-B1)
A6:A9A6="Pmt "&SEQUENCE(B2)&": "
B6:B9B6=SEQUENCE(B2,,B4,0)
Dynamic array formulas.
 
Upvote 0
Hi,

Not sure I totally get it from your description. And I now see you say you are on Office 2016, but that might be stand-alone or 365 subscription.
Hesitated to go for PMT, but someone else already did it.
Book1
ABCDEF
1
2To Pay$ 30.000,00
3Periods10
4Base Payments$ 3.000,00
5
6PaymentsAmountRemaining
7Payment 1$ 3.000,00$ 27.000,00
8Payment 2$ 3.000,00$ 24.000,00
9Payment 3$ 3.000,00$ 21.000,00
10Payment 4$ 3.000,00$ 18.000,00
11Payment 5$ 3.000,00$ 15.000,00
12Payment 6$ 3.000,00$ 12.000,00
13Payment 7$ 3.000,00$ 9.000,00
14Payment 8$ 3.000,00$ 6.000,00
15Payment 9$ 3.000,00$ 3.000,00
16Payment 10$ 3.000,00$ -
17
Sheet2
Cell Formulas
RangeFormula
C4C4=C2/C3
B7:B16B7="Payment "&SEQUENCE(C3)
C7:C16C7=C4*SEQUENCE(C3,,1,0)
D7:D16D7=C2-SUBTOTAL(109,OFFSET(C7,,,SEQUENCE(C3)))
Dynamic array formulas.
 
Upvote 0
Hi,

Not sure I totally get it from your description. And I now see you say you are on Office 2016, but that might be stand-alone or 365 subscription.
Hesitated to go for PMT, but someone else already did it.
Book1
ABCDEF
1
2To Pay$ 30.000,00
3Periods10
4Base Payments$ 3.000,00
5
6PaymentsAmountRemaining
7Payment 1$ 3.000,00$ 27.000,00
8Payment 2$ 3.000,00$ 24.000,00
9Payment 3$ 3.000,00$ 21.000,00
10Payment 4$ 3.000,00$ 18.000,00
11Payment 5$ 3.000,00$ 15.000,00
12Payment 6$ 3.000,00$ 12.000,00
13Payment 7$ 3.000,00$ 9.000,00
14Payment 8$ 3.000,00$ 6.000,00
15Payment 9$ 3.000,00$ 3.000,00
16Payment 10$ 3.000,00$ -
17
Sheet2
Cell Formulas
RangeFormula
C4C4=C2/C3
B7:B16B7="Payment "&SEQUENCE(C3)
C7:C16C7=C4*SEQUENCE(C3,,1,0)
D7:D16D7=C2-SUBTOTAL(109,OFFSET(C7,,,SEQUENCE(C3)))
Dynamic array formulas.
aww.. yess.. He was asking for the remaining 😲
 
Upvote 0
For version 2016 with legacy functions
Cell Formulas
RangeFormula
C4C4=C2/C3
B7:B30B7=IF(ROW()-ROW($B$6)<=$C$3,N(B6)+1,"")
C7:C30C7=IF(B7="","",$C$4)
D7:D30D7=$C$2-SUM($C$7:C7)
 
Upvote 0
@GraH , Yea, it happens!
Book1 (version 2).xlsb
ABCD
1Total Amount: 30,000.00
2Number of Payments: 5
3Annual Interest Rate: 0
4Payments: 6,000.00
5
6Pmt AmtRemainingAlt Remaining
7Pmt 1: 6,000.0024,000.0024,000.00
8Pmt 2: 6,000.0018,000.0018,000.00
9Pmt 3: 6,000.0012,000.0012,000.00
10Pmt 4: 6,000.006,000.006,000.00
11Pmt 5: 6,000.000.000.00
Sheet2
Cell Formulas
RangeFormula
B4B4=PMT(B3,B2,-B1)
A7:A11A7="Pmt "&SEQUENCE(B2)&": "
B7:B11B7=SEQUENCE(B2,,B4,0)
C7:C11C7=BYROW(B7#, LAMBDA(Rw, $B$1-SUM(B7:Rw)))
D7:D11D7=$B$1-SUM($B$7:B7)
Dynamic array formulas.

Included a second non 365 solution as well.
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,421
Members
448,961
Latest member
nzskater

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