Lookup remaining balance by month and payee

csenor

Board Regular
Joined
Apr 10, 2013
Messages
168
Office Version
  1. 365
Platform
  1. Windows
Hello. I have a table that keeps track of my debt payments. 3 of the columns are: Date, Payee, and Remaining Balance. I want to create another formula table or pivot table to see the Remaining Balance of each Payee by Month. I thought the following formula would work, but it's not recognizing the payee. It is only looking at the last date in the month and returning the remaining balance.

I tried to do this with a pivot table, but it doesn't look like it will find the last value of that month. It only lets you show the value as the min or max, which necessarily might not work if the credit card ends up going up by making a big purchase and making just the minimum monthly payment.

Formula: =LOOKUP(EOMONTH($a2,0)&B$1,Date&Payee,Remaining_Balance)

Formula Table:

ABCDE
1CREDIT CARD 1CREDIT CARD 2COLLEGE LOANCAR LOAN
23/1/14
34/1/14
45/1/14

<tbody>
</tbody>
 
Last edited:

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi, not sure to understand your query "last value of that month", however shouldn't you add a column with payee name?
Your data is not optimal for pivot. better to minimise number of columns such as:
namedatetypeamount
A1/1/14COLLEGE LOAN627
B1/2/14CREDIT CARD 1132
A1/3/14CREDIT CARD 2120
E1/4/14COLLEGE LOAN549
B1/1/14CAR LOAN173
C1/2/14CREDIT CARD 2230
D1/3/14CAR LOAN189
A1/4/14CREDIT CARD 1895

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
My debt payment table is set up like your example. What I mean by last value of that month is I want to locate the last date a payment was made by each payee made and return the remaining balance. I want to be able to create a chart to show the remaining balances by month. There may be times when multiple payments are made in a month. I need to find the last one and see the remaining balance.
 
Upvote 0
I've also tried to do this using the following formula. Column 7 is the remaining balance column in my debt payment table. This also does not recognize the Payee. It only recognizes the date and returns the remaining balance.

=INDEX(Table1,MATCH($a2&b$1,Date&Payee,1),7)
 
Upvote 0
given in A1 raw as follows:

namedatetypeamount
A1/1/14COLLEGE LOAN627
B1/2/14CREDIT CARD 1132
A1/3/14CREDIT CARD 2120
E1/4/14COLLEGE LOAN549
B1/1/14CAR LOAN173
C1/2/14CREDIT CARD 2230
D1/3/14CAR LOAN189
A1/4/14CREDIT CARD 1895

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>


results in A15 as follows:
A1/4/14CREDIT CARD 1895
B1/2/14CREDIT CARD 1132
C1/2/14CREDIT CARD 2230
D1/3/14CAR LOAN189
E1/4/14COLLEGE LOAN549

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>

Formula in B15 is =MAX(IF($A$2:$A$9=A15,$B$2:$B$9)) Ctrl + Shift + Enter not just enter on a pC or Command + Return on a MAC. Copied down till needed.
Formula in C15 is =IFERROR(INDEX(C$2:C$9,MATCH(1,($A15=$A$2:$A$9)*($B15=$B$2:$B$9),0)),"") Ctrl + Shift + Enter not just enter on a pC or Command + Return on a MAC.
Copied to the right and down till needed.
 
Upvote 0
Payment Table:
ABCDE
1
DatePayeePaymentCurrent BalanceRemaining Balance
23/3/14Credit Card5015001450
33/15/14Car Loan2501200011750
43/18/14College Loan7550004925
53/20/14Credit Card7514501375
64/2/14Credit Card5013751325
74/15/14Car Loan2501175011500
84/25/14College Loan7549254850
94/28/14Credit Card10015001400

<tbody>
</tbody>




Formula Table to find remaining balance at the end of each month


ABDE
1CREDIT CARDCOLLEGE LOANCAR LOAN
23/1/141375492511750
34/1/141400485011500
45/1/14

<tbody>
</tbody>
 
Upvote 0
Given your raw data in A1.
And given in A16:
CREDIT CARDCOLLEGE LOANCAR LOAN
3/1/141375492511750
4/1/141400485011500
5/1/14

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>


Formula in B17 is =IFERROR(INDEX($E$2:$E$9,SUMPRODUCT(MAX((MONTH($A$2:$A$9)=MONTH($A17))*($B$2:$B$9=B$16)*(ROW($A$2:$A$9))))-1,0),"") Ctrl + Shift + Enter not just Enter on a pC or Command + Return on a MAC.
 
Upvote 0
Sheet1, A:E, houses the data ('Payment Table').

A2:A9 is named as Date via Name Box, B2:B9 as Payee, and E2:E9 as RBalance.

Sheet2, A:E, houses the processing ('Formula Table')

Sheet2, B2, copied across and down:

=IFERROR(LOOKUP(9.99999999999999E+307,1/((Date-DAY(Date)+1=$A2)*(Payee=B$1)),RBalance),"")
 
Upvote 0
Thanks Aladin. I fine tuned your formula and I got it to work. This is what I did:

=IFERROR(LOOKUP(200,1/((Date>=$A2)*(Date<=EOMONTH($A2,0))*(Payee=B$1)),Remaining_Balance),"")

Thanks for answering my post Aladin and Cryilbrd.
 
Upvote 0
Thanks Aladin. I fine tuned your formula and I got it to work. This is what I did:

=IFERROR(LOOKUP(200,1/((Date>=$A2)*(Date<=EOMONTH($A2,0))*(Payee=B$1)),Remaining_Balance),"")

Thanks for answering my post Aladin and Cryilbrd.

Fine-tuned?

[a] 200 in lieu of 9.99999999999999E+307? See http://www.mrexcel.com/forum/excel-questions/102091-9-9999999-a.html



((Date>=$A2)*(Date<=EOMONTH($A2,0))

is exactly the same thing as:

(Date-DAY(Date)+1=$A2)

and less efficient.

[c] See the workbook that implements the suggestion as I made it:
https://dl.dropboxusercontent.com/u/65698317/csenor%20Lookup%20remaining%20balance%20by%20month%20and%20payee.xlsx
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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