Hi,
I have a table where rows range is inconsistent. I need to separate this table in multiple different tables based on customer. This table changes all the time. It can have more or less rows. Following is the table before and after sorting:
Before Sorting
[TABLE="width: 445"]
<tbody>[TR]
[TD]Customer
[/TD]
[TD]Current
[/TD]
[TD]>30 days
[/TD]
[TD]>60 days
[/TD]
[TD]>90 days
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$101,297
[/TD]
[TD]$117
[/TD]
[TD]$3,978
[/TD]
[TD]$178
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$95
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$76,083
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$136,326
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$133,055
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$58,009
[/TD]
[TD]$34,776
[/TD]
[TD]$108,460
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$11,860
[/TD]
[TD]$6,259
[/TD]
[TD]$139
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$32,145
[/TD]
[TD]$0
[/TD]
[TD]$32
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$117,104
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$441,581
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$102,671
[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[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$0
[/TD]
[TD]$33,752
[/TD]
[TD]$75,041
[/TD]
[TD]$85,164
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$49,568
[/TD]
[TD]$52,100
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$212,639
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$420
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$162,380
[/TD]
[TD]$34
[/TD]
[TD]$127
[/TD]
[TD]$1,464
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$432,486
[/TD]
[TD]$1,455
[/TD]
[TD]$3,325
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$20,756
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$407,687
[/TD]
[TD]$197,369
[/TD]
[TD]$36,838
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$15,307
[/TD]
[TD]$5,727
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$406,307
[/TD]
[TD]$344
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$885,034
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$4,270
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$101,504
[/TD]
[TD]$1,189
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$144,265
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$111,031
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$117,023
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$18,920
[/TD]
[TD]$37,033
[/TD]
[TD]$11,387
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$7,701
[/TD]
[TD]$0
[/TD]
[TD]$11
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Total
[/TD]
[TD="align: right"]$4,833,260
[/TD]
[TD="align: right"]$370,154
[/TD]
[TD="align: right"]$297,137
[/TD]
[TD="align: right"]$125,028
[/TD]
[/TR]
</tbody>[/TABLE]
After Sorting
[TABLE="width: 445"]
<tbody>[TR]
[TD]Customer
[/TD]
[TD]Current
[/TD]
[TD]>30 days
[/TD]
[TD]>60 days
[/TD]
[TD]>90 days
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$101,297
[/TD]
[TD]$117
[/TD]
[TD]$3,978
[/TD]
[TD]$178
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$95
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$76,083
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$136,326
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$133,055
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$58,009
[/TD]
[TD]$34,776
[/TD]
[TD]$108,460
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$11,860
[/TD]
[TD]$6,259
[/TD]
[TD]$139
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$32,145
[/TD]
[TD]$0
[/TD]
[TD]$32
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$117,104
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$441,581
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$102,671
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$185,991
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$225
[/TD]
[TD]$210
[/TD]
[/TR]
[TR]
[TD]Subtotal
[/TD]
[TD="align: right"]$1,396,122
[/TD]
[TD="align: right"]$41,152
[/TD]
[TD="align: right"]$112,929
[/TD]
[TD="align: right"]$389
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer
[/TD]
[TD]Current
[/TD]
[TD]>30 days
[/TD]
[TD]>60 days
[/TD]
[TD]>90 days
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$32,035
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$9,664
[/TD]
[TD]$0
[/TD]
[TD]$4,029
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$41,391
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$43,173
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$23,566
[/TD]
[TD]$0
[/TD]
[TD]$32,139
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$94,915
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$18,157
[/TD]
[TD]$31,712
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$2,154
[/TD]
[TD]$2,911
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$94,220
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$1,295
[/TD]
[TD]$0
[/TD]
[TD]$999
[/TD]
[TD]$2,967
[/TD]
[/TR]
[TR]
[TD]Subtotal
[/TD]
[TD="align: right"]$340,260
[/TD]
[TD="align: right"]$0
[/TD]
[TD="align: right"]$57,479
[/TD]
[TD="align: right"]$37,591
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer
[/TD]
[TD]Current
[/TD]
[TD]>30 days
[/TD]
[TD]>60 days
[/TD]
[TD]>90 days
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$0
[/TD]
[TD]$33,752
[/TD]
[TD]$75,041
[/TD]
[TD]$85,164
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$49,568
[/TD]
[TD]$52,100
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$212,639
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$420
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$162,380
[/TD]
[TD]$34
[/TD]
[TD]$127
[/TD]
[TD]$1,464
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$432,486
[/TD]
[TD]$1,455
[/TD]
[TD]$3,325
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$20,756
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$407,687
[/TD]
[TD]$197,369
[/TD]
[TD]$36,838
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$15,307
[/TD]
[TD]$5,727
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$406,307
[/TD]
[TD]$344
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$885,034
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$4,270
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$101,504
[/TD]
[TD]$1,189
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$144,265
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$111,031
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$117,023
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$18,920
[/TD]
[TD]$37,033
[/TD]
[TD]$11,387
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$7,701
[/TD]
[TD]$0
[/TD]
[TD]$11
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Subtotal
[/TD]
[TD="align: right"]$3,096,878
[/TD]
[TD="align: right"]$329,002
[/TD]
[TD="align: right"]$126,730
[/TD]
[TD="align: right"]$87,049
[/TD]
[/TR]
</tbody>[/TABLE]
Is there any VBA code to do this quickly? Highly appreciate your help.
Cheers!!
I have a table where rows range is inconsistent. I need to separate this table in multiple different tables based on customer. This table changes all the time. It can have more or less rows. Following is the table before and after sorting:
Before Sorting
[TABLE="width: 445"]
<tbody>[TR]
[TD]Customer
[/TD]
[TD]Current
[/TD]
[TD]>30 days
[/TD]
[TD]>60 days
[/TD]
[TD]>90 days
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$101,297
[/TD]
[TD]$117
[/TD]
[TD]$3,978
[/TD]
[TD]$178
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$95
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$76,083
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$136,326
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$133,055
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$58,009
[/TD]
[TD]$34,776
[/TD]
[TD]$108,460
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$11,860
[/TD]
[TD]$6,259
[/TD]
[TD]$139
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$32,145
[/TD]
[TD]$0
[/TD]
[TD]$32
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$117,104
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$441,581
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$102,671
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$185,991
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
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D]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$101,504
[/TD]
[TD]$1,189
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$144,265
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$111,031
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$117,023
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$18,920
[/TD]
[TD]$37,033
[/TD]
[TD]$11,387
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$7,701
[/TD]
[TD]$0
[/TD]
[TD]$11
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Total
[/TD]
[TD="align: right"]$4,833,260
[/TD]
[TD="align: right"]$370,154
[/TD]
[TD="align: right"]$297,137
[/TD]
[TD="align: right"]$125,028
[/TD]
[/TR]
</tbody>[/TABLE]
After Sorting
[TABLE="width: 445"]
<tbody>[TR]
[TD]Customer
[/TD]
[TD]Current
[/TD]
[TD]>30 days
[/TD]
[TD]>60 days
[/TD]
[TD]>90 days
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$101,297
[/TD]
[TD]$117
[/TD]
[TD]$3,978
[/TD]
[TD]$178
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$95
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$76,083
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$136,326
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$133,055
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$58,009
[/TD]
[TD]$34,776
[/TD]
[TD]$108,460
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$11,860
[/TD]
[TD]$6,259
[/TD]
[TD]$139
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$32,145
[/TD]
[TD]$0
[/TD]
[TD]$32
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$117,104
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$441,581
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$102,671
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$185,991
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor A
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$225
[/TD]
[TD]$210
[/TD]
[/TR]
[TR]
[TD]Subtotal
[/TD]
[TD="align: right"]$1,396,122
[/TD]
[TD="align: right"]$41,152
[/TD]
[TD="align: right"]$112,929
[/TD]
[TD="align: right"]$389
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer
[/TD]
[TD]Current
[/TD]
[TD]>30 days
[/TD]
[TD]>60 days
[/TD]
[TD]>90 days
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$32,035
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$9,664
[/TD]
[TD]$0
[/TD]
[TD]$4,029
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$41,391
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$43,173
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$23,566
[/TD]
[TD]$0
[/TD]
[TD]$32,139
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$94,915
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$18,157
[/TD]
[TD]$31,712
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$2,154
[/TD]
[TD]$2,911
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$94,220
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor B
[/TD]
[TD]$1,295
[/TD]
[TD]$0
[/TD]
[TD]$999
[/TD]
[TD]$2,967
[/TD]
[/TR]
[TR]
[TD]Subtotal
[/TD]
[TD="align: right"]$340,260
[/TD]
[TD="align: right"]$0
[/TD]
[TD="align: right"]$57,479
[/TD]
[TD="align: right"]$37,591
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer
[/TD]
[TD]Current
[/TD]
[TD]>30 days
[/TD]
[TD]>60 days
[/TD]
[TD]>90 days
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$0
[/TD]
[TD]$33,752
[/TD]
[TD]$75,041
[/TD]
[TD]$85,164
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$49,568
[/TD]
[TD]$52,100
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$212,639
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$420
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$162,380
[/TD]
[TD]$34
[/TD]
[TD]$127
[/TD]
[TD]$1,464
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$432,486
[/TD]
[TD]$1,455
[/TD]
[TD]$3,325
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$20,756
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$407,687
[/TD]
[TD]$197,369
[/TD]
[TD]$36,838
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$15,307
[/TD]
[TD]$5,727
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$406,307
[/TD]
[TD]$344
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$885,034
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$4,270
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$101,504
[/TD]
[TD]$1,189
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$144,265
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$111,031
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$117,023
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$18,920
[/TD]
[TD]$37,033
[/TD]
[TD]$11,387
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Debtor C
[/TD]
[TD]$7,701
[/TD]
[TD]$0
[/TD]
[TD]$11
[/TD]
[TD]$0
[/TD]
[/TR]
[TR]
[TD]Subtotal
[/TD]
[TD="align: right"]$3,096,878
[/TD]
[TD="align: right"]$329,002
[/TD]
[TD="align: right"]$126,730
[/TD]
[TD="align: right"]$87,049
[/TD]
[/TR]
</tbody>[/TABLE]
Is there any VBA code to do this quickly? Highly appreciate your help.
Cheers!!
Last edited: