"SUM" Based on Description

Panoos64

Well-known Member
Joined
Mar 1, 2014
Messages
882
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.
AKALAMAN
546TOTAL REVENUE:-50,555.00
547
548COST OF SALES8,150.00
549ELECTRICIYT3,125.00
550WATER SUPPLY1,245.00
551PRINTING & STATIONERY874.00
552HEATING & LIGHTING2,896.00
553REPAIRS & MAINTENANCE4,258.00
554RATES & LICENSES1,368.00
555ADMINISTRATION EXPENSES2,562.00

<tbody>
</tbody>


Sch.2.
AKALAMAN
546TOTAL REVENUE:-50,555.00
547
548COST OF SALES8,150.00
549ELECTRICIYT3,125.00
550WATER SUPPLY1,245.00
551PRINTING & STATIONERY874.00
552HEATING & LIGHTING2,896.00
553REPAIRS & MAINTENANCE4,258.00
554RATES & LICENSES1,368.00
555ADMINISTRATION EXPENSES2,562.00
556
557TOTAL EXPENSES24,478.00
558
559NET PROFIT / LOSS-26,077.00

<tbody>
</tbody>
 
You are welcome.
Glad I was able to help!:)
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,215,357
Messages
6,124,482
Members
449,165
Latest member
ChipDude83

We've detected that you are using an adblocker.

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.
Go back
Back
Top