RAJESH1960
Banned for repeated rules violations
- Joined
- Mar 26, 2020
- Messages
- 2,313
- Office Version
- 2019
- Platform
- Windows
Hello guys
Here I have this bank sheet, the data of which is from different sheets and is appended. I am trying to clean this sheet just like in the expected result sheet. John Topley was very supportive in writing the code to get the result. But I was not able to make him understand the below 2 points. I really hope someone in this forum, understands this.
The problem is that, in column H, the amounts are just copied from column G without the format Cr/ Dr and entered. If I failed to enter any of the rows while appending the data, still it would should the final amounts as matched in the H column.
This is what exactly I need in the code. After sorting the line from largest to smallest, the first amount in cell H2 to be copied from G2 without the format, i.e., Dr / Cr which is already done in the code. In column H3 I want to insert a formula and drag it down to the end to check whether the balance is matched with column G last row. The formula to be applied to H3 is “(=H2+F3-E3)”.
In the end I need to place a msg box with a condition, i.e., If the amount in column G last row without the format Dr / Cr is equivalent to the amount in column H last row, then the msg box should display a message “Data cleaned & Matched Successfully”, else ”Mismatched. Check if any row is missed to enter”.
If the result data has calibri font and size 11 and autofit, it would be really cool.
I need your expertise to complete the above. Thank you in advance.
Clean & customise sheet with a code.xlsm
EDIT:
Please Note: A_test is a recorded macro which I forgot to delete. The code to be edited is module1.
Here I have this bank sheet, the data of which is from different sheets and is appended. I am trying to clean this sheet just like in the expected result sheet. John Topley was very supportive in writing the code to get the result. But I was not able to make him understand the below 2 points. I really hope someone in this forum, understands this.
The problem is that, in column H, the amounts are just copied from column G without the format Cr/ Dr and entered. If I failed to enter any of the rows while appending the data, still it would should the final amounts as matched in the H column.
This is what exactly I need in the code. After sorting the line from largest to smallest, the first amount in cell H2 to be copied from G2 without the format, i.e., Dr / Cr which is already done in the code. In column H3 I want to insert a formula and drag it down to the end to check whether the balance is matched with column G last row. The formula to be applied to H3 is “(=H2+F3-E3)”.
In the end I need to place a msg box with a condition, i.e., If the amount in column G last row without the format Dr / Cr is equivalent to the amount in column H last row, then the msg box should display a message “Data cleaned & Matched Successfully”, else ”Mismatched. Check if any row is missed to enter”.
If the result data has calibri font and size 11 and autofit, it would be really cool.
I need your expertise to complete the above. Thank you in advance.
Clean & customise sheet with a code.xlsm
EDIT:
Please Note: A_test is a recorded macro which I forgot to delete. The code to be edited is module1.
Last edited by a moderator: