Possible to rearrange really broken Trial Balance sheets?

Fabulist

Board Regular
Joined
Jan 28, 2014
Messages
110
Hello everyone!

I am using a software suite which produces Trial Balances in a completely problematic and difficult to edit form. It looks like this (partial example, incorrect totals):

View image: TB

Usually, and ideally, a software generated Trial Balance would look like this:

AccountDescriptionRecordRecord Balance2014 Y/ECurrent BalanceThis PeriodYear to DateCurrent Balance
--DebitCreditDebitCreditDebitCreditDebitCreditDebitCreditDebitCreditDebitCredit
12-01-00-0002Floor-Separators565,77565,77565,77565,77
12-01-00-0003Door-Separators1.584,301.000,001.584,30600,001.584,301.584,30
12-01-00-0004Lead1.454,441.454,441.454,441.454,44
12-01-00-0005334,69334,69334,69334,69
12-01-00-0006Hydralic Installations557,53557,53200,00200,00150,00150,0075,0075,00557,53557,53
12-01-00-0007Crystals692,59692,59692,59692,59
12-01-00-0008WEST POINT704,33704,33704,33704,33
12-01-00-0009Air-condition621,761.000,00621,76700,00621,76621,76
12-01-00-0010Air-condition484,97484,97484,97484,97
12-01-00-0011Monitor R1407.404,187.404,187.404,185.500,007.404,181.999,00
12-06Other mechanical equipment2.169,562.169,562.169,562.169,56
12-06-00Other mechanical equipment2.169,562.169,562.169,562.169,56
12-06-00-0000Air-condition909,78909,78909,78909,78

<tbody>
</tbody>

The fact that the cells are separated the way they are makes it incredibly difficult to use the data, a situation enhanced by titles that are on top of each other instead of side to side. In case you have not seen a TB before, the table in the example is separated by the company's name (software - specific) and goes on for many accounts.

Would it be possible that this mess is somehow fixed and rearranged to the ideal format automatically, or at least eliminate the problematic cells / columns so editing and summing is not a frustrating situation with doubtful results?

I have uploaded the file here, since copy pasting it in the forum did not produce the same results: Example in case anyone wants to take a direct look.

Thank you to anyone who replies in advance!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
All I can think of is trying to find other reports in the system to run instead (hopefully less of an Excel formatting disaster than what's above) and perhaps combining them. Ideally one with just the beginning balances and another with transactions.
 
Upvote 0
All I can think of is trying to find other reports in the system to run instead (hopefully less of an Excel formatting disaster than what's above) and perhaps combining them. Ideally one with just the beginning balances and another with transactions.

Unfortunatelly, the system produces only this type of reports; no PDF, no ASCII etc.
 
Upvote 0
I meant formatting might be easier with two smaller reports. What else do you have in the system?

Unfortunatelly, there is nothing really there for us in the system, the only filetype it can produce is this Excel and the only format is this one.
 
Upvote 0
You don't have a purchases or transactions report? Or a general ledger summary? Just a "General Trial Balance"?
 
Upvote 0
You don't have a purchases or transactions report? Or a general ledger summary? Just a "General Trial Balance"?

The "General Trial Balance" I threw in there was an example, I do have every file necessary. However, the Trial Balance is interconnected to a program which automatically transfers the required numbers and makes adjustments as well as calculations automatically. In order for it to function properly, the Trial Balance needs to be in the standard and common form, otherwise it cannot be read. Currently, I manually re-adjust the Trial Balances and have to either redo all links or reformat it to the standard format, something dangerous and time consuming, considering I need to adjust over 100 Trial Balances with the same format. The safest but most time consuming method is to readjust all formulas after removing the broken intermediary cells and columns. The quickest, but not as safe, is to rearrange the Trial Balance to the standard format.

There is a specific software, old and crippled, that many companies use, and it produces Trial Balances this way - I cannot avoid it or make it produce it another way.
 
Upvote 0
Yes, the newer database programs are better if you have them, otherwise you're limited to these awful excel unfriendly reports.

A macro did refine your sample above, but I don't know how well it will handle different reports and exceptions:

Code:
Sub formattb()
Dim x%
With ActiveSheet.UsedRange
.Value = .Value
.UnMerge
.Columns.AutoFit
Rows.AutoFit
For x = .Rows.Count To 1 Step -1
If Application.CountA(Cells(x, 1).Resize(, .Columns.Count)) = 0 Then
Rows(x).Delete
End If
Next
For x = .Columns.Count To 1 Step -1
If Application.CountA(Cells(1, x).Resize(Rows.Count)) = 0 Then
Columns(x).Delete
End If
Next
Range("a9").Resize(.Rows.Count - 10, 2).Cut Destination:=Range("a8")
With Range("a8").Resize(.Rows.Count - 9, 2)
.SpecialCells(xlCellTypeBlanks).FormulaR1C1 = "=R[-1]C"
.Value = .Value
Range("a8").Copy
.PasteSpecial Paste:=xlPasteFormats
Application.CutCopyMode = False
End With
For x = .Rows.Count To 8 Step -1
If Application.CountA(Cells(x, 5).Resize(, 9)) = 0 Then
Rows(x).Delete
End If
Next
End With
End Sub
 
Upvote 0
Excuse my delay, my reply for some reason was not posted.

Thank you for taking your time writting this macro, I appreciate it. It seems to partially work; it does clean up the problematic columns but some numbers also dissapear.

I posted a link with the problematic TB, but I do not see it in my original post, was it deleted due to forum rules or did I completely forget about it - not sure. I can repost it if you wish to see and reproduce the problem, but whether I select the whole sheet or only cells with numerical values, some data is always lost.
 
Upvote 0
'General Trial Balance

Account movements from 01/01/2015 up to 30/09/2015

with the rest just as you have above is what was in the link (might have been removed accidentally, not against the forum rules unless the hosting site was questionable)

the macro didn't miss any numbers with that sample. If you can post how yours looked after running it and another report that I can try it on.
 
Upvote 0

Forum statistics

Threads
1,221,526
Messages
6,160,340
Members
451,637
Latest member
hvp2262

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