Hi All,
First time I am coming to this situation were I don't have any idea how to write a macro for below situation.
1) Unique id is in Column B.
2) Amount is in column C.
3) date of transaction is in column A
I need a macro which will add the amount based on unique ID and create new rows which will have the following and delete old rows.
- last date in date column
- ID in particulars column
- amount in amount column.
<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
my output should be as shown below:
<colgroup><col><col><col></colgroup><tbody>
</tbody>
First time I am coming to this situation were I don't have any idea how to write a macro for below situation.
1) Unique id is in Column B.
2) Amount is in column C.
3) date of transaction is in column A
I need a macro which will add the amount based on unique ID and create new rows which will have the following and delete old rows.
- last date in date column
- ID in particulars column
- amount in amount column.
Date | Particulars | Amount | |
23-Jul-18 | ABC | -3,36,000 | |
24-Jul-18 | ABC | 78,000 | |
25-Jul-18 | ABC | 48,000 | |
26-Jul-18 | ABC | 54,000 | -1,56,000 |
23-Jul-18 | XYZ | -3,36,000 | |
24-Jul-18 | XYZ | 2,27,800 | |
25-Jul-18 | XYZ | 98,000 | |
25-Jul-18 | XYZ | 1,000 | |
26-Jul-18 | XYZ | 54,000 | 44,800 |
<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
my output should be as shown below:
Date | Particulars | Amount |
26-Jul-18 | ABC | -156000 |
26-Jul-18 | XYZ | 44800 |
<colgroup><col><col><col></colgroup><tbody>
</tbody>