You have a balance of 5693 in a cost center. This balance should be divided equally to multiple cost centers. You create an Excel and enter that into system to have a manual journal entry.
To make the process bit smoother we can use COUNTA function.

Presuming, the balance in the cost center CCM is positive and the cc should be zeroed by dividing the plus to several cost centers. One way is to increase costs to CCM in debit and post negative costs in credit for the multiple cost centers.
The sentence in D3 is =ROUND($C$2/(COUNTA($A$1:$A$24)-1);2).
The balance in CCM is divided by number of cost centers in A-column minus one (CCM). This is done if you add lines for dividing the balance for several other cost centers. The division is rounded by two decimals.
New cost centers are added but the sentence is not changed.

Before you post this journal entry, you want to check the roundings. Now debit is 5693 but credit 5693,04. The journal entry would not be posted as debit does not equal to credit. You can manually add the numbers to have equal debit and credit. A simple way to adjust the debit balance if you want all the receiving cost centers to have the same balance. In that case, cost center CCM would have a balance of -0,04. If the cost center may not have negative value, then you need to adjust credit balances.
There is one process question to be notified. As we post credit balance for expense accounts, that will create a negative total if there the balance is in the cost center lower that 632,56. For example, in cost center CC1 there is no postings for the account 5000. Then credit posting makes the balance for CC1/5000 negative, which is increasing the balance in CC1. If you take a report for CC1, the report might look unusual to show negative costs.
Another way is to create percentages instead of absolute numbers for each line.

The percentages must equal to 1, like the value in F1.
The sentence in D3 is =ROUND(F3*$C$2;2).
If you want to adjust percentages and divide the balance unequally to cost centers, the formulas can be overwritten. This was done in F5 and F9.

COUNTA might not look like a breakthrough in accounting, it can still fasten the process when creating a long journal entry. Once the model is made, it can hopefully be used with several journal entries.











