Hi to everyone, i would like to write a VBA command so that to sum the rows which are contains in column "C" the letters "CRN" & "COR". and are over one year as from today which is in column "F"3 and delete then the rows which are sub totals. In addition the name of Debtor in column 'A" should be turn to one row below so that to be in the same line of the sum. At F.1. are the data before adjusting and in F.2. is the expected result. The rows are change when ever i download the data and the spreadsheet contains more than 30.000 rows. I would be greatly appreciated any help. Thanking you in advance.
<colgroup><col style="mso-width-source:userset;mso-width-alt:2048;width:42pt" width="56"> <col style="mso-width-source:userset;mso-width-alt:3840;width:79pt" width="105"> <col style="mso-width-source:userset;mso-width-alt:3108;width:64pt" width="85"> <col style="mso-width-source:userset;mso-width-alt:4315;width:89pt" width="118"> <col style="mso-width-source:userset;mso-width-alt:3584;width:74pt" width="98"> <col style="mso-width-source:userset;mso-width-alt:3547;width:73pt" width="97"> <col style="mso-width-source:userset;mso-width-alt:4096;width:84pt" width="112"> </colgroup><tbody>
</tbody>
<colgroup><col style="mso-width-source:userset;mso-width-alt:2048;width:42pt" width="56"> <col style="mso-width-source:userset;mso-width-alt:3840;width:79pt" width="105"> <col style="mso-width-source:userset;mso-width-alt:3108;width:64pt" width="85"> <col style="mso-width-source:userset;mso-width-alt:4315;width:89pt" width="118"> <col style="mso-width-source:userset;mso-width-alt:3584;width:74pt" width="98"> <col style="mso-width-source:userset;mso-width-alt:3547;width:73pt" width="97"> <col style="mso-width-source:userset;mso-width-alt:4096;width:84pt" width="112"> </colgroup><tbody>
</tbody>
A | B | C | D | E | F | |
1 | ||||||
2 | ||||||
3 | 10/12/2014 | |||||
4 | ||||||
5 | Debtor Name | Date | Document | Description | Debit | Credit |
6 | ||||||
7 | Company ABCD | |||||
8 | 13/3/2010 | CRN - 13031001 | CREDIT NOTE | 0,00 | 1.580,00 | |
9 | 25/5/2011 | CRN- 25051101 | CREDIT NOTE | 0,00 | 620,00 | |
10 | 25/10/2014 | COR - 125214 | CORRECTION | 0,00 | 155,00 | |
11 | Company EFGH | |||||
12 | 25/8/2010 | CRN - 25081001 | CREDIT NOTE | 0,00 | 150,00 | |
13 | 13/9/2010 | CRN - 13091002 | CREDIT NOTE | 0,00 | 75,00 | |
14 | 10/8/2014 | CRN - 10081401 | CREDIT NOTE | 0,00 | 225,00 | |
15 | 15/9/2014 | COR - 25090902 | CORRECTION | 0,00 | 55,00 |
<colgroup><col style="mso-width-source:userset;mso-width-alt:2048;width:42pt" width="56"> <col style="mso-width-source:userset;mso-width-alt:3840;width:79pt" width="105"> <col style="mso-width-source:userset;mso-width-alt:3108;width:64pt" width="85"> <col style="mso-width-source:userset;mso-width-alt:4315;width:89pt" width="118"> <col style="mso-width-source:userset;mso-width-alt:3584;width:74pt" width="98"> <col style="mso-width-source:userset;mso-width-alt:3547;width:73pt" width="97"> <col style="mso-width-source:userset;mso-width-alt:4096;width:84pt" width="112"> </colgroup><tbody>
</tbody>
A | B | C | D | E | F | |
1 | ||||||
2 | ||||||
3 | 10/12/2014 | |||||
4 | Debtor Name | Date | Document | Description | Debit | Credit |
5 | ||||||
6 | Company ABCD | 13/3/2010 | CRN - 13031001 | CREDIT NOTE | 0,00 | 2.200,00 |
7 | ||||||
8 | Company EFGH | 25/8/2010 | CRN - 25081001 | CREDIT NOTE | 0,00 | 225,00 |
<colgroup><col style="mso-width-source:userset;mso-width-alt:2048;width:42pt" width="56"> <col style="mso-width-source:userset;mso-width-alt:3840;width:79pt" width="105"> <col style="mso-width-source:userset;mso-width-alt:3108;width:64pt" width="85"> <col style="mso-width-source:userset;mso-width-alt:4315;width:89pt" width="118"> <col style="mso-width-source:userset;mso-width-alt:3584;width:74pt" width="98"> <col style="mso-width-source:userset;mso-width-alt:3547;width:73pt" width="97"> <col style="mso-width-source:userset;mso-width-alt:4096;width:84pt" width="112"> </colgroup><tbody>
</tbody>