uniqe list with zero balance condition

faizee

Board Regular
Joined
Jan 28, 2009
Messages
214
Office Version
  1. 2016
Platform
  1. Windows
Dear all
i have a following data,


S NoDateSupplierDebit / CreditBILL NODescriptionFolioDebitCrediteach bill balance
125-Jun-14Asif TradersCredit33received bill1150000
225-Jun-14Asif TradersDebit33payment againts chq no. 11221240000
305-Jul-14ABC TRADERSCredit55received bill2240000
405-Jul-14ABC TRADERSDebit56payment againts chq no. 1124440000
506-Aug-13Asif BrotherCredit345received bill5650000
06-Aug-13Asif BrotherDebit33payment againts chq no. 11282225000

<colgroup><col><col><col><col><col><col><col><col span="2"><col></colgroup><tbody>
</tbody>



I want the unique list of suppliers (column c), where balance is zero,
means. only need unique list of suppliers where sum of credit-sum of debit of this supplier is zero

the result of this data should be
Asif brother
Asif traders

Please help
thank you
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
ABC Traders are the only supplier in this information that has a balance of zero. Right?
 
Upvote 0
YES, You are right,
but I am sorry. i need where balance is not zero..

so the result would be
Asif Brother
Asif Traders
 
Upvote 0
If I'm right, then there's a solution for you. I would set up another table. Copy and paste all your suppliers into the second column of your new table. Use the "Data Tools" to "remove duplicates" in the column.
in column 3 of your new table set up a Debit list: use =Sumif(C:C, -here name the cell that the first supplier is in in your new table- , H:H)
in column 4 of your new table set up a credit list: use the same formula as above but sum range I:I instead of H:H
in column 1 of your new table set up a balance list: each cell = the corresponding Credits - Debits.
Now in another column set up a =VLOOKUP(0, Reference your total new table cells area here, 2, FALSE)
 
Last edited:
Upvote 0
Change the VLOOKUP suggestion. Rather, use another column to the right of the Credit column in the new table. Call this Debtor Creditors. formula =if(Column 1 value > 0 , Column 2 value, "")
This will list the debtors
 
Upvote 0
thank you for you reply,
but i cant remove duplicates, because i need real-time result.
if there is any supplier.whose balance is not zero.. it should be in the list.. if it has zero balance it should not come in the unique list
 
Upvote 0
Is your supplier list stagnant?

How about list the suppliers in column K
in column L drop this formula. It will show the balance for the Suppliers.

=(SUMIF(C:C,K2,H:H)-(SUMIF(C:C,K2,I:I)))
 
Last edited:
Upvote 0
Set up the table reversing column L and Column K as I mentioned above so that balance is in K and supplier in L.

next you will want to apply the formula discussed on this site:

How to look up a value in a list and return multiple corresponding values - Excel

I put a "0" in cell O1 Then in column P I have pasted:

<tbody>
</tbody>
=IF(ISERROR(INDEX($L$1:$M$4,SMALL(IF($L$1:$L$4<0,ROW($L$1:$L$4)),ROW(10:10)),2)),"",INDEX($L$1:$M$4,SMALL(IF($L$1:$L$4<0,ROW($L$1:$L$4)),ROW(10:10)),2))


Works like a charm

IF the list is constantly updating and possibly adding new suppliers then you can create a list of suppliers using a formula like the one discussed on this website:

http://www.get-digital-help.com/200...-and-the-duplicates-in-excel-from-one-column/

for me, I have balance in column L and supplier in column M. In M2 and below I have: =INDEX($C$2:$C$1000, MATCH(0, COUNTIF($M$1:M1, $C$2:$C$1000), 0)) <--Array formula, and it's giving me the unique list.
 
Last edited:
Upvote 0
thank you for your reply,
it is bit confusing for me. is it possible i sent you my excel file. and you set this formula in it
i will be thankful to you
 
Upvote 0

Forum statistics

Threads
1,215,573
Messages
6,125,608
Members
449,238
Latest member
wcbyers

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