filter after deduction

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
343
Office Version
  1. 365
Platform
  1. Windows
sirs,

from the given table.. i would like to deduct payment from the loan amount in which the result will be filtered by those with balances only (ignoring zero balance). If possible with no helper column.

testing.xlsx
ABCDEF
1NAMELOAN AMOUNTPAYMENT
2Lara100005000
3Gayle10000EXPECTED RESULT
4Ponting100002000NAMEBALANCE
5Welles10000Lara10000
6Lara3000Gayle10000
7Murdoch10000Welles10000
8Ponting3000Murdoch10000
9Coolidge100001000Porter10000
10Porter10000Coolidge9000
11Lara100002000Ponting5000
12Perot1000010000
13Kipling1000010000
14
Sheet18
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Try the below

Book1.xlsx
ABCDEFGHIJK
1
2NAMELOAN AMOUNTPAYMENTEXPECTED RESULT
3NAMEBALANCENameBalance
4Lara100005000Lara10000Lara0
5Gayle10000Gayle10000Gayle10000
6Ponting100002000Welles10000Ponting5000
7Welles10000Murdoch10000Welles10000
8Lara3000Porter10000Murdoch10000
9Murdoch10000Coolidge9000Coolidge9000
10Ponting3000Ponting5000Porter10000
11Coolidge100001000Perot0
12Porter10000Kipling0
13Lara100002000
14Perot1000010000
15Kipling1000010000
16
17
Sheet5
Cell Formulas
RangeFormula
I4:I12I4=UNIQUE(FILTER(B4:B15,C4:C15>0))
J4:J12J4=UNIQUE(FILTER(C4:C15,C4:C15>0))-SUMIF(B4:B15,I4#,D4:D15)
Dynamic array formulas.
 
Upvote 0
Try the below

Book1.xlsx
ABCDEFGHIJK
1
2NAMELOAN AMOUNTPAYMENTEXPECTED RESULT
3NAMEBALANCENameBalance
4Lara100005000Lara10000Lara0
5Gayle10000Gayle10000Gayle10000
6Ponting100002000Welles10000Ponting5000
7Welles10000Murdoch10000Welles10000
8Lara3000Porter10000Murdoch10000
9Murdoch10000Coolidge9000Coolidge9000
10Ponting3000Ponting5000Porter10000
11Coolidge100001000Perot0
12Porter10000Kipling0
13Lara100002000
14Perot1000010000
15Kipling1000010000
16
17
Sheet5
Cell Formulas
RangeFormula
I4:I12I4=UNIQUE(FILTER(B4:B15,C4:C15>0))
J4:J12J4=UNIQUE(FILTER(C4:C15,C4:C15>0))-SUMIF(B4:B15,I4#,D4:D15)
Dynamic array formulas.
thank you.. but "Lara" should have a balance of 10,000..
 
Upvote 0
oops see below
Book1.xlsx
ABCDEFGHIJK
1
2NAMELOAN AMOUNTPAYMENTEXPECTED RESULT
3NAMEBALANCENameBalance
4Lara100005000Lara10000Lara10000
5Gayle10000Gayle10000Gayle10000
6Ponting100002000Welles10000Ponting5000
7Welles10000Murdoch10000Welles10000
8Lara3000Porter10000Murdoch10000
9Murdoch10000Coolidge9000Coolidge9000
10Ponting3000Ponting5000Porter10000
11Coolidge100001000
12Porter10000
13Lara100002000
14Perot1000010000
15Kipling1000010000
16
Sheet5
Cell Formulas
RangeFormula
I4:I10I4=UNIQUE(FILTER(B4:B15,SUMIF(B4:B15,B4:B15,C4:C15)-SUMIF(B4:B15,B4:B15,D4:D15)>0))
J4:J10J4=SUMIF(B4:B15,I4#,C4:C15)-SUMIF(B4:B15,I4#,D4:D15)
Dynamic array formulas.
 
Upvote 0
Solution
To get it sorted decending, I have had create another column.
Book1.xlsx
ABCDEFGHIJKLMN
1
2NAMELOAN AMOUNTPAYMENTEXPECTED RESULT
3NAMEBALANCENameBalance
4Lara100005000Lara10000Lara10000Lara10000
5Gayle10000Gayle10000Gayle10000Gayle10000
6Ponting100002000Welles10000Welles10000Ponting5000
7Welles10000Murdoch10000Murdoch10000Welles10000
8Lara3000Porter10000Porter10000Murdoch10000
9Murdoch10000Coolidge9000Coolidge9000Coolidge9000
10Ponting3000Ponting5000Ponting5000Porter10000
11Coolidge100001000
12Porter10000
13Lara100002000
14Perot1000010000
15Kipling1000010000
16
17
Sheet5
Cell Formulas
RangeFormula
I4:J10I4=SORTBY(L4:M10,M4#,-1)
L4:L10L4=UNIQUE(FILTER(B4:B15,SUMIF(B4:B15,B4:B15,C4:C15)-SUMIF(B4:B15,B4:B15,D4:D15)>0))
M4:M10M4=SUMIF(B4:B15,L4#,C4:C15)-SUMIF(B4:B15,L4#,D4:D15)
Dynamic array formulas.
 
Upvote 0
oops see below
Book1.xlsx
ABCDEFGHIJK
1
2NAMELOAN AMOUNTPAYMENTEXPECTED RESULT
3NAMEBALANCENameBalance
4Lara100005000Lara10000Lara10000
5Gayle10000Gayle10000Gayle10000
6Ponting100002000Welles10000Ponting5000
7Welles10000Murdoch10000Welles10000
8Lara3000Porter10000Murdoch10000
9Murdoch10000Coolidge9000Coolidge9000
10Ponting3000Ponting5000Porter10000
11Coolidge100001000
12Porter10000
13Lara100002000
14Perot1000010000
15Kipling1000010000
16
Sheet5
Cell Formulas
RangeFormula
I4:I10I4=UNIQUE(FILTER(B4:B15,SUMIF(B4:B15,B4:B15,C4:C15)-SUMIF(B4:B15,B4:B15,D4:D15)>0))
J4:J10J4=SUMIF(B4:B15,I4#,C4:C15)-SUMIF(B4:B15,I4#,D4:D15)
Dynamic array formulas.
this worx.. thank you
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,207
Members
452,618
Latest member
Tam84

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