Hi all, i would like to "SUM" the below numbers using a VBA code which should base on description in col. "AK". In F.1. are the original data and in Sch.2. is the expected result. Therefore that the rows are not stably and are change due to accounts which have movement for each month.
Thanking you in advance
Sch.1.
<tbody>
[TD="class: xl65, width: 128"]AK[/TD]
[TD="class: xl65, width: 65"]AL[/TD]
[TD="class: xl65, width: 71"]AM[/TD]
[TD="class: xl65, width: 76"]AN[/TD]
[TD="align: right"]546[/TD]
[TD="class: xl66"]TOTAL REVENUE:[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl66, align: right"]-50,555.00[/TD]
[TD="align: right"]547[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl66"][/TD]
[TD="align: right"]548[/TD]
[TD="class: xl65"]COST OF SALES[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]8,150.00[/TD]
[TD="align: right"]549[/TD]
[TD="class: xl65"]ELECTRICIYT[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]3,125.00[/TD]
[TD="align: right"]550[/TD]
[TD="class: xl65"]WATER SUPPLY[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]1,245.00[/TD]
[TD="align: right"]551[/TD]
[TD="class: xl65, colspan: 2"]PRINTING & STATIONERY[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]874.00[/TD]
[TD="align: right"]552[/TD]
[TD="class: xl65, colspan: 2"]HEATING & LIGHTING[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]2,896.00[/TD]
[TD="align: right"]553[/TD]
[TD="class: xl65, colspan: 2"]REPAIRS & MAINTENANCE[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]4,258.00[/TD]
[TD="align: right"]554[/TD]
[TD="class: xl65"]RATES & LICENSES[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]1,368.00[/TD]
[TD="align: right"]555[/TD]
[TD="class: xl65, colspan: 2"]ADMINISTRATION EXPENSES[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]2,562.00[/TD]
</tbody>
Sch.2.
<tbody>
[TD="class: xl65, width: 128"]AK[/TD]
[TD="class: xl65, width: 65"]AL[/TD]
[TD="class: xl65, width: 71"]AM[/TD]
[TD="class: xl65, width: 76"]AN[/TD]
[TD="align: right"]546[/TD]
[TD="class: xl66"]TOTAL REVENUE:[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl66, align: right"]-50,555.00[/TD]
[TD="align: right"]547[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl66"][/TD]
[TD="align: right"]548[/TD]
[TD="class: xl65"]COST OF SALES[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]8,150.00[/TD]
[TD="align: right"]549[/TD]
[TD="class: xl65"]ELECTRICIYT[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]3,125.00[/TD]
[TD="align: right"]550[/TD]
[TD="class: xl65"]WATER SUPPLY[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]1,245.00[/TD]
[TD="align: right"]551[/TD]
[TD="class: xl65, colspan: 2"]PRINTING & STATIONERY[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]874.00[/TD]
[TD="align: right"]552[/TD]
[TD="class: xl65, colspan: 2"]HEATING & LIGHTING[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]2,896.00[/TD]
[TD="align: right"]553[/TD]
[TD="class: xl65, colspan: 2"]REPAIRS & MAINTENANCE[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]4,258.00[/TD]
[TD="align: right"]554[/TD]
[TD="class: xl65"]RATES & LICENSES[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]1,368.00[/TD]
[TD="align: right"]555[/TD]
[TD="class: xl65, colspan: 2"]ADMINISTRATION EXPENSES[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]2,562.00[/TD]
[TD="align: right"]556[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="align: right"]557[/TD]
[TD="class: xl66"]TOTAL EXPENSES[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl66, align: right"]24,478.00[/TD]
[TD="align: right"]558[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="align: right"]559[/TD]
[TD="class: xl66"]NET PROFIT / LOSS[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl66, align: right"]-26,077.00[/TD]
</tbody>
Thanking you in advance
Sch.1.
<tbody>
[TD="class: xl65, width: 128"]AK[/TD]
[TD="class: xl65, width: 65"]AL[/TD]
[TD="class: xl65, width: 71"]AM[/TD]
[TD="class: xl65, width: 76"]AN[/TD]
[TD="align: right"]546[/TD]
[TD="class: xl66"]TOTAL REVENUE:[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl66, align: right"]-50,555.00[/TD]
[TD="align: right"]547[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl66"][/TD]
[TD="align: right"]548[/TD]
[TD="class: xl65"]COST OF SALES[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]8,150.00[/TD]
[TD="align: right"]549[/TD]
[TD="class: xl65"]ELECTRICIYT[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]3,125.00[/TD]
[TD="align: right"]550[/TD]
[TD="class: xl65"]WATER SUPPLY[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]1,245.00[/TD]
[TD="align: right"]551[/TD]
[TD="class: xl65, colspan: 2"]PRINTING & STATIONERY[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]874.00[/TD]
[TD="align: right"]552[/TD]
[TD="class: xl65, colspan: 2"]HEATING & LIGHTING[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]2,896.00[/TD]
[TD="align: right"]553[/TD]
[TD="class: xl65, colspan: 2"]REPAIRS & MAINTENANCE[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]4,258.00[/TD]
[TD="align: right"]554[/TD]
[TD="class: xl65"]RATES & LICENSES[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]1,368.00[/TD]
[TD="align: right"]555[/TD]
[TD="class: xl65, colspan: 2"]ADMINISTRATION EXPENSES[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]2,562.00[/TD]
</tbody>
Sch.2.
<tbody>
[TD="class: xl65, width: 128"]AK[/TD]
[TD="class: xl65, width: 65"]AL[/TD]
[TD="class: xl65, width: 71"]AM[/TD]
[TD="class: xl65, width: 76"]AN[/TD]
[TD="align: right"]546[/TD]
[TD="class: xl66"]TOTAL REVENUE:[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl66, align: right"]-50,555.00[/TD]
[TD="align: right"]547[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl66"][/TD]
[TD="align: right"]548[/TD]
[TD="class: xl65"]COST OF SALES[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]8,150.00[/TD]
[TD="align: right"]549[/TD]
[TD="class: xl65"]ELECTRICIYT[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]3,125.00[/TD]
[TD="align: right"]550[/TD]
[TD="class: xl65"]WATER SUPPLY[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]1,245.00[/TD]
[TD="align: right"]551[/TD]
[TD="class: xl65, colspan: 2"]PRINTING & STATIONERY[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]874.00[/TD]
[TD="align: right"]552[/TD]
[TD="class: xl65, colspan: 2"]HEATING & LIGHTING[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]2,896.00[/TD]
[TD="align: right"]553[/TD]
[TD="class: xl65, colspan: 2"]REPAIRS & MAINTENANCE[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]4,258.00[/TD]
[TD="align: right"]554[/TD]
[TD="class: xl65"]RATES & LICENSES[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]1,368.00[/TD]
[TD="align: right"]555[/TD]
[TD="class: xl65, colspan: 2"]ADMINISTRATION EXPENSES[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65, align: right"]2,562.00[/TD]
[TD="align: right"]556[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="align: right"]557[/TD]
[TD="class: xl66"]TOTAL EXPENSES[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl66, align: right"]24,478.00[/TD]
[TD="align: right"]558[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="align: right"]559[/TD]
[TD="class: xl66"]NET PROFIT / LOSS[/TD]
[TD="class: xl65"][/TD]
[TD="class: xl65"][/TD]
[TD="class: xl66, align: right"]-26,077.00[/TD]
</tbody>