Power Query Eliminate Contra entries

NSCJPN

New Member
Joined
Dec 15, 2016
Messages
14
Office Version
  1. 2016
Platform
  1. Windows
Inspired by Mr Fluff‘s quick response to my query on Sorting Sheets of a workbook, I am seeking another help.In accounts, you have ‘Contra entries’ - same amount in Debit and Credit column of a ledger. Is it possible to eliminate contra entries of a ledger using Power Query or VBA.?
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
I do not see a reason why not.
Conditions could be for a PQ solution:
- having the customer account ref in both of a payment ref or invoice ref,...
- matching ? amounts
- merge on both columns, full outer join to allow having left anti, matching and right anti records. In first not second table, in both, not in first but in second table.
 
Upvote 0
Thanks
contra entries are in the same table.Thinking of splitting the query into two and then follow yr steps.Ref is missing in some instances; the contra amount is also not on the same date and hence will have to rely on amount column only.
 
Upvote 0
You can do a join on the same table, using merge as new, or copy your query and then do the join.
You may want to try with a simple pivot since data is in one table. Possible when you have a positive and negative amounts value. Difficult to give clear advice without seeing data.
 
Upvote 0

Forum statistics

Threads
1,223,777
Messages
6,174,464
Members
452,566
Latest member
Bonnie_bb

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