Hi Oleksandr,
In your case you can make use of EPMInsertcellBeforeAfterBlock() .
But while using this you need to apply some logic that you should first Sum() the required cells in an excel cell after that you must refer that in the above EPM Function...
Aravind