IF formula question

beginvbaanalyst

Board Regular
Joined
Jan 28, 2020
Messages
141
Office Version
  1. 365
Platform
  1. Windows
New question for everyone, I'm trying to sum the prior month balance of all loan ID that are no longer in my current month as it was paid off. I can use this formula but adjust some values right? For some reason I get it to lookup all balances.

=IF(Table2[@[Loan ID]]<>[@[Loan ID]],INDEX(Table2[Balance],MATCH([@[Loan ID]],Table2[Loan ID],0)),"-")

^Current formula that pulls all balance.
Basically in my head I have if the Jan20 (table 2) loan id doesn't match my current month Feb20 (Table 1) loan ID,return the sum of balance for all loans no longer in Feb20. Is it possible to just do one formula to auto calucate all? I would need to add specific types to this. Example "800", "208", "301", I think it's pulling the loan ID balance from all existing loan ids from Feb20 if it was still in Jan20. Maybe I need to switch what my lookup value is?

After thinking more about it, just because the loan no longer exists, the Borrower could have refinanced and it's no new money to us. So it would need to also find any new opened loans in the current month (Table 1) greater than 2/1/20 and then subtract the new loan from old loan for a true value. I have to calculate the total balance as of previous month for specific loan types that paid off in the current month.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
I don't understand what you're saying. I don't understand the "Table2[@[LoanID]]" you are using as well as all the other terminology. Why don't you post a snippet so we can see the issue
 
Upvote 0
Could you post a small sample of your data and the output you desire?

Untested:
Excel Formula:
=SUMIFS(Table2[Balance],Table2[Loan Type],"=800",Table2[Loan Date],"<2/1/2020",ISERROR(MATCH(Table2[Loan ID],Table1[Loan ID],0)))
 
Upvote 0
Could you post a small sample of your data and the output you desire?

Untested:
Excel Formula:
=SUMIFS(Table2[Balance],Table2[Loan Type],"=800",Table2[Loan Date],"<2/1/2020",ISERROR(MATCH(Table2[Loan ID],Table1[Loan ID],0)))
I will give this a go!
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,173
Members
452,615
Latest member
bogeys2birdies

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