I have a spreadsheet that contains more than 30,000 transactions. There are a lot of wash-out transactions in the spreadsheet. The wash-out transactions are the ones that the AP department accrues and reverses and they are with the same absolute value on the same transaction date. I used absolute and sort functions to identify the wash-out transactions; however, it was very time-consuming to delete those transactions one by one manually. Is there any way to do it efficiently?
The worksheet contains Source Type (column A), date (column B), and transaction amount (column C) with more than 33000 rows. My objective is to delete the transactions that have corresponding negative transaction values with the same dates or the source type indicates AP Accr or Rev AP Accr for the corresponding transactions. For example:
I read the thread http://www.mrexcel.com/forum/showthread.php?t=55965 and thought it was the closest I could find for my problem; however, I couldn't quite understand the solution formula; i.e. {=IF(COUNTIF($A$1:$A$10,A1)>1,IF(SUM(($C$1:$C$10=-C1)*($A$1:$A$10=A1))>0,"Delete",""),"")}
(array entered - CTRL + SHIFT +ENTER)
Later, I finally figured out the array does not work well with condition IF(AND), or, IF(OR), so the best way to address the condition is to use * for AND condition, + for the OR condition. But I still don't quite understand why use COUNTIF.
I thought D2= {MAX (C2=-data_range)*(B2=date_range) *(row=data_range) }(array entered - CTRL + SHIFT +ENTER) will show me either 0 or the row # if there is a corresponding row (the negative value) given that the data_range is the column for the "amount" and the date_range is named for the "date"column. Then I can sort the data. The return value 0 will be the non-wash-out transactions. The non-0 return value will be part of the wash-out transactions.
But I don't know how to to define the washouts for all three conditions : the transations must have a corresponding negative amount with the same date or the source type indicates AP Accr or Rev AP Accr since the corresponding washout transactions might be either on the same date or Rev AP Accr not done on the same date.
Are there any better way to solve the problem?
I am new to this site and excel. How do I make a table to demonstrate part of the the spreadsheet if I am not clear enough for my questions?
Click the "profile" link--which is in the group of text links at the top-right of every page of the board.
In the list of preferences, make sure the option for "Always allow HTML" is set to Yes.
Click the "Submit" button to save any changes to your profile
I cannot find the profile link with the list of preferences. I skipped thosew part and tried to follow the rest of the directions. I was unable to post the table. It only had the source codes w/o table.
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.