Tag transactions that can be removed

jansi79

New Member
Joined
Feb 5, 2016
Messages
18
Hello, I have a small excel problem that I was wondering if anyone have a good solution for.
I have a list of transactions that are linked to a profit center and an account, these transactions could be removed if:
• There is a + and a – transaction for the same amount and the same profit center and account.
• Another case where the transactions could be removed is where there are multiple transactions with the same + & - as the two transactions, but where there are more then two. In this case the oldest transactions could be removed, and only the latest should be kept.
If there are only one transaction for the profit center and account at that amount, the transaction should be kept.
I have tried to explain the logic in the table below.
<style type="text/css">
table.tableizer-table {
font-size: 12px;
border: 1px solid #CCC;
font-family: Arial, Helvetica, sans-serif;
}
.tableizer-table td {
padding: 4px;
margin: 3px;
border: 1px solid #CCC;
}
.tableizer-table th {
background-color: #104E8B;
color: #FFF;
font-weight: bold;
}
</style>
<table class="tableizer-table">
<thead><tr class="tableizer-firstrow"><th>Profit Center</th><th>Account</th><th>Profit Center - Account</th><th>Document Date</th><th>Posting Date</th><th>Amount</th><th>Remove/Keep</th></tr></thead><tbody>
<tr><td>0053</td><td>611000</td><td>0053-611000</td><td>30.04.2015</td><td>15.05.2015</td><td>200</td><td>Keep</td></tr>
<tr><td>0053</td><td>611010</td><td>0053-611010</td><td>25.08.2015</td><td>25.08.2015</td><td>350</td><td>Keep</td></tr>
<tr><td>0053</td><td>611100</td><td>0053-611100</td><td>15.05.2015</td><td>15.05.2015</td><td>200</td><td>Remove</td></tr>
<tr><td>0053</td><td>611100</td><td>0053-611100</td><td>15.05.2015</td><td>15.05.2015</td><td>-200</td><td>Remove</td></tr>
<tr><td>0053</td><td>611100</td><td>0053-611100</td><td>15.05.2015</td><td>15.05.2015</td><td>200</td><td>Remove</td></tr>
<tr><td>0053</td><td>611100</td><td>0053-611100</td><td>30.07.2015</td><td>31.07.2015</td><td>-200</td><td>Remove</td></tr>
<tr><td>0053</td><td>611200</td><td>0053-611200</td><td>01.01.2015</td><td>01.01.2015</td><td>-1500</td><td>Remove</td></tr>
<tr><td>0053</td><td>611200</td><td>0053-611200</td><td>09.02.2015</td><td>10.02.2015</td><td>1500</td><td>Remove</td></tr>
<tr><td>0053</td><td>611200</td><td>0053-611200</td><td>11.05.2015</td><td>31.05.2015</td><td>1500</td><td>Keep</td></tr>
<tr><td>0053</td><td>611500</td><td>0053-611500</td><td>01.01.2015</td><td>03.01.2015</td><td>2000</td><td>Remove</td></tr>
<tr><td>0053</td><td>611500</td><td>0053-611500</td><td>06.04.2015</td><td>06.04.2015</td><td>-2000</td><td>Keep</td></tr>
<tr><td>0053</td><td>611500</td><td>0053-611500</td><td>09.02.2015</td><td>09.02.2015</td><td>-2000</td><td>Remove</td></tr>
<tr><td>0053</td><td>612000</td><td>0053-612000</td><td>19.06.2015</td><td>25.06.2015</td><td>300</td><td>Keep</td></tr>
<tr><td>0053</td><td>612000</td><td>0053-612000</td><td>21.09.2015</td><td>21.09.2015</td><td>500</td><td>Keep</td></tr>
<tr><td>0053</td><td>612000</td><td>0053-612000</td><td>29.06.2015</td><td>29.06.2015</td><td>200</td><td>Keep</td></tr>
</tbody></table>

I appreciate any assistance I could get on this excel problem.
 
can you use a helper column (which can be deleted once you have identified all pairs to be removed)
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
[TABLE="width: 1179"]
<colgroup><col><col><col><col><col><col><col><col span="2"><col><col><col span="6"></colgroup><tbody>[TR]
[TD]Profit Center[/TD]
[TD]Account[/TD]
[TD]Profit Center - Account[/TD]
[TD]Document Date[/TD]
[TD]Posting Date[/TD]
[TD]Amount[/TD]
[TD]Remove / Keep (desired outcome)[/TD]
[TD][/TD]
[TD][/TD]
[TD]see if there is a matching row with minus "amount"[/TD]
[TD]profit centre account[/TD]
[TD]decision[/TD]
[TD][/TD]
[TD]also delete row number[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611000[/TD]
[TD]0053-611000[/TD]
[TD]30.04.2015[/TD]
[TD]15.05.2015[/TD]
[TD="align: right"]200[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-611000[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611010[/TD]
[TD]0053-611010[/TD]
[TD]25.08.2015[/TD]
[TD]25.08.2015[/TD]
[TD="align: right"]350[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-611010[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611200[/TD]
[TD]0053-611200[/TD]
[TD]11.05.2015[/TD]
[TD]31.05.2015[/TD]
[TD="align: right"]1500[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-611200[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611500[/TD]
[TD]0053-611500[/TD]
[TD]01.01.2015[/TD]
[TD]03.01.2015[/TD]
[TD="align: right"]2000[/TD]
[TD]Remove[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-611500[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]612000[/TD]
[TD]0053-612000[/TD]
[TD]19.06.2015[/TD]
[TD]25.06.2015[/TD]
[TD="align: right"]300[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-612000[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]612000[/TD]
[TD]0053-612000[/TD]
[TD]21.09.2015[/TD]
[TD]21.09.2015[/TD]
[TD="align: right"]500[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-612000[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]612000[/TD]
[TD]0053-612000[/TD]
[TD]29.06.2015[/TD]
[TD]29.06.2015[/TD]
[TD="align: right"]200[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-612000[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 14"]below is original data - I removed each pair indicated for deletion - this avoided wrong cross referencing where there is 200 -200 200 -200 for same prof centre account[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Profit Center[/TD]
[TD]Account[/TD]
[TD]Profit Center - Account[/TD]
[TD]Document Date[/TD]
[TD]Posting Date[/TD]
[TD]Amount[/TD]
[TD="colspan: 3"]Remove / Keep (desired outcome)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 3"]also delete row number[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611000[/TD]
[TD]0053-611000[/TD]
[TD]30.04.2015[/TD]
[TD]15.05.2015[/TD]
[TD="align: right"]200[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611100[/TD]
[TD]0053-611000[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611010[/TD]
[TD]0053-611010[/TD]
[TD]25.08.2015[/TD]
[TD]25.08.2015[/TD]
[TD="align: right"]350[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-611010[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611100[/TD]
[TD]0053-611100[/TD]
[TD]15.05.2015[/TD]
[TD]15.05.2015[/TD]
[TD="align: right"]200[/TD]
[TD]Remove[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611100[/TD]
[TD]0053-611100[/TD]
[TD]remove[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611100[/TD]
[TD]0053-611100[/TD]
[TD]15.05.2015[/TD]
[TD]15.05.2015[/TD]
[TD="align: right"]-200[/TD]
[TD]Remove[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611000[/TD]
[TD]0053-611100[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611100[/TD]
[TD]0053-611100[/TD]
[TD]15.05.2015[/TD]
[TD]15.05.2015[/TD]
[TD="align: right"]200[/TD]
[TD]Remove[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611100[/TD]
[TD]0053-611100[/TD]
[TD]remove[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611100[/TD]
[TD]0053-611100[/TD]
[TD]30.07.2015[/TD]
[TD]31.07.2015[/TD]
[TD="align: right"]-200[/TD]
[TD]Remove[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611000[/TD]
[TD]0053-611100[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611200[/TD]
[TD]0053-611200[/TD]
[TD]01.01.2015[/TD]
[TD]01.01.2015[/TD]
[TD="align: right"]-1500[/TD]
[TD]Remove[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611200[/TD]
[TD]0053-611200[/TD]
[TD]remove[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611200[/TD]
[TD]0053-611200[/TD]
[TD]09.02.2015[/TD]
[TD]10.02.2015[/TD]
[TD="align: right"]1500[/TD]
[TD]Remove[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611200[/TD]
[TD]0053-611200[/TD]
[TD]remove[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611200[/TD]
[TD]0053-611200[/TD]
[TD]11.05.2015[/TD]
[TD]31.05.2015[/TD]
[TD="align: right"]1500[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611200[/TD]
[TD]0053-611200[/TD]
[TD]remove[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611500[/TD]
[TD]0053-611500[/TD]
[TD]01.01.2015[/TD]
[TD]03.01.2015[/TD]
[TD="align: right"]2000[/TD]
[TD]Remove[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611500[/TD]
[TD]0053-611500[/TD]
[TD]remove[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611500[/TD]
[TD]0053-611500[/TD]
[TD]06.04.2015[/TD]
[TD]06.04.2015[/TD]
[TD="align: right"]-2000[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611500[/TD]
[TD]0053-611500[/TD]
[TD]remove[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]11[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611500[/TD]
[TD]0053-611500[/TD]
[TD]09.02.2015[/TD]
[TD]09.02.2015[/TD]
[TD="align: right"]-2000[/TD]
[TD]Remove[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611500[/TD]
[TD]0053-611500[/TD]
[TD]remove[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]11[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]612000[/TD]
[TD]0053-612000[/TD]
[TD]19.06.2015[/TD]
[TD]25.06.2015[/TD]
[TD="align: right"]300[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-612000[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]612000[/TD]
[TD]0053-612000[/TD]
[TD]21.09.2015[/TD]
[TD]21.09.2015[/TD]
[TD="align: right"]500[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-612000[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]612000[/TD]
[TD]0053-612000[/TD]
[TD]29.06.2015[/TD]
[TD]29.06.2015[/TD]
[TD="align: right"]200[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611100[/TD]
[TD]0053-612000[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 7"]as I removed each pair by deleting whole rows the rows yet to be deleted updated[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 3"]top table is what I believe you want[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 12"]summarising, formulas indicated "possible" deletions and as each pair of rows was deleted the information on further deletions became more accurate[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
It seam to look ok, do you have the functions that you have entered to identify this??

regards

Jan Sigve
 
Upvote 0
now shows the 2 formulas

[TABLE="width: 1179"]
<colgroup><col><col><col><col><col><col><col><col span="2"><col><col><col span="6"></colgroup><tbody>[TR]
[TD]Profit Center[/TD]
[TD]Account[/TD]
[TD]Profit Center - Account[/TD]
[TD]Document Date[/TD]
[TD]Posting Date[/TD]
[TD]Amount[/TD]
[TD]Remove / Keep (desired outcome)[/TD]
[TD][/TD]
[TD][/TD]
[TD]see if there is a matching row with minus "amount"[/TD]
[TD]profit centre account[/TD]
[TD]decision[/TD]
[TD][/TD]
[TD]also delete row number[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611000[/TD]
[TD]0053-611000[/TD]
[TD]30.04.2015[/TD]
[TD]15.05.2015[/TD]
[TD="align: right"]200[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD]#######[/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-611000[/TD]
[TD]keep[/TD]
[TD="colspan: 2"]@@@@@[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611010[/TD]
[TD]0053-611010[/TD]
[TD]25.08.2015[/TD]
[TD]25.08.2015[/TD]
[TD="align: right"]350[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-611010[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611200[/TD]
[TD]0053-611200[/TD]
[TD]11.05.2015[/TD]
[TD]31.05.2015[/TD]
[TD="align: right"]1500[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-611200[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611500[/TD]
[TD]0053-611500[/TD]
[TD]01.01.2015[/TD]
[TD]03.01.2015[/TD]
[TD="align: right"]2000[/TD]
[TD]Remove[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-611500[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]612000[/TD]
[TD]0053-612000[/TD]
[TD]19.06.2015[/TD]
[TD]25.06.2015[/TD]
[TD="align: right"]300[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-612000[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]612000[/TD]
[TD]0053-612000[/TD]
[TD]21.09.2015[/TD]
[TD]21.09.2015[/TD]
[TD="align: right"]500[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-612000[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]612000[/TD]
[TD]0053-612000[/TD]
[TD]29.06.2015[/TD]
[TD]29.06.2015[/TD]
[TD="align: right"]200[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-612000[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]col J[/TD]
[TD]col K[/TD]
[TD]col L[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 14"]below is original data - I removed each pair indicated for deletion - this avoided wrong cross referencing where there is 200 -200 200 -200 for same prof centre account[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Profit Center[/TD]
[TD]Account[/TD]
[TD]Profit Center - Account[/TD]
[TD]Document Date[/TD]
[TD]Posting Date[/TD]
[TD]Amount[/TD]
[TD="colspan: 3"]Remove / Keep (desired outcome)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 3"]also delete row number[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611000[/TD]
[TD]0053-611000[/TD]
[TD]30.04.2015[/TD]
[TD]15.05.2015[/TD]
[TD="align: right"]200[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611100[/TD]
[TD]0053-611000[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611010[/TD]
[TD]0053-611010[/TD]
[TD]25.08.2015[/TD]
[TD]25.08.2015[/TD]
[TD="align: right"]350[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-611010[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611100[/TD]
[TD]0053-611100[/TD]
[TD]15.05.2015[/TD]
[TD]15.05.2015[/TD]
[TD="align: right"]200[/TD]
[TD]Remove[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611100[/TD]
[TD]0053-611100[/TD]
[TD]remove[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611100[/TD]
[TD]0053-611100[/TD]
[TD]15.05.2015[/TD]
[TD]15.05.2015[/TD]
[TD="align: right"]-200[/TD]
[TD]Remove[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611000[/TD]
[TD]0053-611100[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611100[/TD]
[TD]0053-611100[/TD]
[TD]15.05.2015[/TD]
[TD]15.05.2015[/TD]
[TD="align: right"]200[/TD]
[TD]Remove[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611100[/TD]
[TD]0053-611100[/TD]
[TD]remove[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611100[/TD]
[TD]0053-611100[/TD]
[TD]30.07.2015[/TD]
[TD]31.07.2015[/TD]
[TD="align: right"]-200[/TD]
[TD]Remove[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611000[/TD]
[TD]0053-611100[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611200[/TD]
[TD]0053-611200[/TD]
[TD]01.01.2015[/TD]
[TD]01.01.2015[/TD]
[TD="align: right"]-1500[/TD]
[TD]Remove[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611200[/TD]
[TD]0053-611200[/TD]
[TD]remove[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611200[/TD]
[TD]0053-611200[/TD]
[TD]09.02.2015[/TD]
[TD]10.02.2015[/TD]
[TD="align: right"]1500[/TD]
[TD]Remove[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611200[/TD]
[TD]0053-611200[/TD]
[TD]remove[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611200[/TD]
[TD]0053-611200[/TD]
[TD]11.05.2015[/TD]
[TD]31.05.2015[/TD]
[TD="align: right"]1500[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611200[/TD]
[TD]0053-611200[/TD]
[TD]remove[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611500[/TD]
[TD]0053-611500[/TD]
[TD]01.01.2015[/TD]
[TD]03.01.2015[/TD]
[TD="align: right"]2000[/TD]
[TD]Remove[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611500[/TD]
[TD]0053-611500[/TD]
[TD]remove[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611500[/TD]
[TD]0053-611500[/TD]
[TD]06.04.2015[/TD]
[TD]06.04.2015[/TD]
[TD="align: right"]-2000[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611500[/TD]
[TD]0053-611500[/TD]
[TD]remove[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]11[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]611500[/TD]
[TD]0053-611500[/TD]
[TD]09.02.2015[/TD]
[TD]09.02.2015[/TD]
[TD="align: right"]-2000[/TD]
[TD]Remove[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611500[/TD]
[TD]0053-611500[/TD]
[TD]remove[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]11[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]612000[/TD]
[TD]0053-612000[/TD]
[TD]19.06.2015[/TD]
[TD]25.06.2015[/TD]
[TD="align: right"]300[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-612000[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]612000[/TD]
[TD]0053-612000[/TD]
[TD]21.09.2015[/TD]
[TD]21.09.2015[/TD]
[TD="align: right"]500[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD]0053-612000[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]53[/TD]
[TD="align: right"]612000[/TD]
[TD]0053-612000[/TD]
[TD]29.06.2015[/TD]
[TD]29.06.2015[/TD]
[TD="align: right"]200[/TD]
[TD]Keep[/TD]
[TD][/TD]
[TD][/TD]
[TD]0053-611100[/TD]
[TD]0053-612000[/TD]
[TD]keep[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 7"]as I removed each pair by deleting whole rows the rows yet to be deleted updated[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 3"]top table is what I believe you want[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 12"]summarising, formulas indicated "possible" deletions and as each pair of rows was deleted the information on further deletions became more accurate[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]#########[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]@@@@@[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 4"]=OFFSET($F$1,MATCH(-F2,$F$2:$F$8,0),-3)[/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 7"]=IF(ISERROR(IF(J2=K2,"remove","keep")),"keep",(IF(J2=K2,"remove","keep")))[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Hello Again, I don't understand how to use these formulas, could you please explain again how to use it, and you don't need to remove any records, I just wan't to mark them.
Another check that needs to be done, is to summerize all the amounts for the ones that should be removed, and the sum should become "0".

regards

Jan Sigve
 
Upvote 0
the lower table has the rows marked for deletion. each pair to delete add to zero so the sum is by definition "0".

I just assumed you wanted the deletions done hence the top table.
 
Upvote 0
Thanks for Your reply, but could you explain where I put the two formulas, I would like to thest them on a dataset of 32000 records.

=OFFSET($F$1,MATCH(-F2,$F$2:$F$8,0),-3) =IF(ISERROR(IF(J2=K2,"remove","keep")),"keep",(IF(J2=K2,"remove","keep")))
 
Upvote 0
[TABLE="width: 1051"]
<colgroup><col><col><col><col><col><col><col><col span="2"><col><col><col span="4"></colgroup><tbody>[TR]
[TD]Profit Center[/TD]
[TD]Account[/TD]
[TD]Profit Center - Account[/TD]
[TD]Document Date[/TD]
[TD]Posting Date[/TD]
[TD]Amount[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]see if there is a matching row with minus "amount"[/TD]
[TD]profit centre account[/TD]
[TD]decision[/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[/TR]
[TR]
[TD]53[/TD]
[TD]611000[/TD]
[TD]0053-611000[/TD]
[TD]30.04.2015[/TD]
[TD]15.05.2015[/TD]
[TD]200[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]#######[/TD]
[TD]#N/A[/TD]
[TD]0053-611000[/TD]
[TD]keep[/TD]
[TD]@@@@@[/TD]
[TD] [/TD]
[TD][/TD]
[/TR]
[TR]
[TD]53[/TD]
[TD]611010[/TD]
[TD]0053-611010[/TD]
[TD]25.08.2015[/TD]
[TD]25.08.2015[/TD]
[TD]350[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]#N/A[/TD]
[TD]0053-611010[/TD]
[TD]keep[/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[/TR]
[TR]
[TD]53[/TD]
[TD]611200[/TD]
[TD]0053-611200[/TD]
[TD]11.05.2015[/TD]
[TD]31.05.2015[/TD]
[TD]1500[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]#N/A[/TD]
[TD]0053-611200[/TD]
[TD]keep[/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[/TR]
[TR]
[TD]53[/TD]
[TD]611500[/TD]
[TD]0053-611500[/TD]
[TD]01.01.2015[/TD]
[TD]03.01.2015[/TD]
[TD]2000[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]#N/A[/TD]
[TD]0053-611500[/TD]
[TD]keep[/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[/TR]
[TR]
[TD]53[/TD]
[TD]612000[/TD]
[TD]0053-612000[/TD]
[TD]19.06.2015[/TD]
[TD]25.06.2015[/TD]
[TD]300[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]#N/A[/TD]
[TD]0053-612000[/TD]
[TD]keep[/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[/TR]
[TR]
[TD]53[/TD]
[TD]612000[/TD]
[TD]0053-612000[/TD]
[TD]21.09.2015[/TD]
[TD]21.09.2015[/TD]
[TD]500[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]#N/A[/TD]
[TD]0053-612000[/TD]
[TD]keep[/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[/TR]
[TR]
[TD]53[/TD]
[TD]612000[/TD]
[TD]0053-612000[/TD]
[TD]29.06.2015[/TD]
[TD]29.06.2015[/TD]
[TD]200[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]#N/A[/TD]
[TD]0053-612000[/TD]
[TD]keep[/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[/TR]
[TR]
[TD]col A[/TD]
[TD] [/TD]
[TD]col C[/TD]
[TD] [/TD]
[TD]col E[/TD]
[TD] [/TD]
[TD]col G[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]col J[/TD]
[TD]col K[/TD]
[TD]col L[/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]#########[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]@@@@@[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 4"]=OFFSET($F$1,MATCH(-F2,$F$2:$F$8,0),-3)[/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 7"]=IF(ISERROR(IF(J2=K2,"remove","keep")),"keep",(IF(J2=K2,"remove","keep")))[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 3"]this formula in col J by original data[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 5"]this formula sees if the two prof centre numbers match[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 3"]it checks for a matching row[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 3"]and if so ( or not) inserts keep or remove[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]with a minus amount[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 3"]if so it shows prof centre account[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 6"]you need to put ### formula a bit to the right of your data in cols A to F[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 3"]col K is a straight copy of col C[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 3"]@@@@ formula goes in col L[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,334
Members
452,636
Latest member
laura12345

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