Best way to automate the reformatting of this?

FaxMeBeer

New Member
Joined
Apr 20, 2020
Messages
6
Office Version
  1. 2013
Platform
  1. Windows
I don't know how to best deal with getting my example onto this post, so forgive the copy pasta. Below is an example of how my company's system exports reports in Excel (there is no CSV, or un-formatted option for export).

So, the employee's name is sort of randomly inserted at the top of the data related to that employee. Then there are all the blank columns, headers are not properly aligned to the columns they represent. and it's just a mess. I have tried recording a macro of the cleanup, but since the data changes (the report has more records each time) that doesn't work. So, I'm going to have to do something else (VBA, Power Query...whatever), and no matter what I use, I'm going to have to learn it. What solution would be best for me to invest the time in learning, since I'm going to have to learn something?

Closed Claims By Adjuster
REPORT CRITERIA: Closed Date: 01/01/2019 - 04/17/2019
Claim #GBL / Reg No.CompanySTClaimant NameClaimant E-mailAmountAmountVar %ChargeClaim DateClosed DateDate SettledDaysClaim TypeClaim Status
ClaimedPaidBack
John Johnson
696457BGAC0414608AMWD060John SmithExample@example.com$1,800.00$562.480.31$87.5001/26/201803/07/201903/07/2019405CargoCompleted
703015AGFM0368441FOFD209John SmithExample@example.com$1,500.00$0.000.00$0.0006/26/201803/04/201903/04/2019251CargoCompleted
703080CNNQ0494844DMS094John SmithExample@example.com$5,527.99$2,722.990.49$500.0007/02/201801/31/201901/31/2019213CargoCompleted
680639KKFA0555596DMS067John SmithExample@example.com$39,843.00$0.000.00$0.0007/13/201804/10/201904/10/2019271Loss/DamageFile 13
680639KKFA0555596DMS067John SmithExample@example.com$39,907.00$245.000.01$0.0007/25/201804/10/201904/10/2019259Loss/DamageFile 13
705056WKAS0160382CRWV31004John SmithExample@example.com$4,547.00$1,516.790.33$500.0008/13/201801/07/201901/07/2019147CargoCompleted
706016BGAC0431018DMS087John SmithExample@example.com$5,440.00$2,561.600.47$500.0008/14/201801/10/201901/10/2019149CargoCompleted
706664BKAS0097794DMS074John SmithExample@example.com$4,395.96$1,703.990.39$497.5008/21/201801/28/201901/28/2019160CargoCompleted
707106LKNQ0329379DMS095John SmithExample@example.com$3,569.00$784.500.22$147.5008/23/201802/04/201902/04/2019165CargoCompleted
711009HBAT0075292CRWV31030John SmithExample@example.com$4,900.00$2,438.540.50$350.5508/24/201801/30/201901/30/2019159CargoCompleted
706474BGAC0432355CRWV31030John SmithExample@example.com$4,975.32$3,941.940.79$987.9708/24/201802/06/201902/06/2019166CargoCompleted
705458CNNQ0513999CRWV31004John SmithExample@example.com$19,410.42$8,347.550.43$6,159.1308/30/201804/12/201904/12/2019225CargoCompleted
712913BGAC0440734DMS081John SmithExample@example.com$4,260.00$991.180.23$406.2509/11/201802/01/201902/01/2019143CargoCompleted
707887HAFC0473002CRWV31030John SmithExample@example.com$1,990.00$1,755.000.88$325.0009/12/201801/10/201901/10/2019120CargoCompleted
708413BGAC0435209CRWV31030John SmithExample@example.com$3,105.00$3,105.001.00$3,105.0003/01/201904/12/201904/12/201942Demand on CarrierCompleted
710279BGAC0437638CRWV31030John SmithExample@example.com$1,150.00$0.000.00$0.0003/01/201903/15/201903/15/201914CargoDenied
682370CNNQ0471978FOFD201John SmithExample@example.com$1,876.99$1,876.991.00$500.0003/25/201904/16/201904/16/201922Demand on CarrierCompleted
679700BGAC0394813CRWV31030John SmithExample@example.com$142.25$142.251.00$0.0003/25/201904/11/201904/11/201917Demand on CarrierCompleted
710205WKFS0078155CRWV31004John SmithExample@example.com$2,548.24$2,548.001.00$2,548.0003/25/201904/16/201904/16/201922Demand on CarrierCompleted
710736HBAT0075215CRWV31030John SmithExample@example.com$2,670.00$2,670.001.00$500.0003/27/201904/17/201904/17/201921Demand on CarrierCompleted
Total For Adjuster
Total Amount Claimed$487,174.16
Total Amount Paid$146,246.91
Variation Amt Paid VS Amt Claimed340,927.25
Total Amount Charge Back$52,503.88
Average Days to Settle0
Total Number of Claims101
Average Paid per Claim1,447.99
Don Smith
709177CNNQ0519154DMS094John SmithExample@example.com$31,590.16$21,210.680.67$19,294.0208/28/201801/25/201901/25/2019150Loss/DamageCompleted
710043BGAC0437415DMS094John SmithExample@example.com$47,397.53$54,439.171.15$36,844.4408/29/201801/16/201901/16/2019140RemediationCompleted
710588HAFC0476057FOFD201John SmithExample@example.com$2,499.00$1,027.560.41$375.0009/04/201801/09/201901/09/2019127CargoCompleted
703570WKAS0159370CRWV31004John SmithExample@example.com$6,015.00$1,989.480.33$500.0009/10/201801/03/201901/03/2019115CargoCompleted
710509HBAT0075150CRWV31030John SmithExample@example.com$2,505.00$1,751.950.70$763.5009/12/201801/10/201901/10/2019120CargoCompleted
705362BGAC0429753CRWV31004John SmithExample@example.com$6,884.00$3,900.580.57$500.0009/17/201802/08/201902/08/2019144CargoCompleted
706200CLPK0017398AMWD061John SmithExample@example.com$1,320.00$335.920.25$325.9309/28/201801/28/201901/28/2019122CargoCompleted
712900BGAC0440747FOFD201John SmithExample@example.com$5,334.00$1,054.830.20$850.2310/08/201803/04/201903/04/2019147CargoCompleted
709252BGAC0435953CRWV31030John SmithExample@example.com$10,967.39$6,679.380.61$2,396.9310/15/201801/22/201901/22/201999CargoCompleted
709071LKNQ0331307DMS087John SmithExample@example.com$850.00$399.000.47$162.5010/15/201801/02/201901/02/201979CargoCompleted
710625KKFA0664067CRWV31030John SmithExample@example.com$1,239.83$1,389.831.12$0.0010/16/201803/04/201903/04/2019139CargoCompleted
712366AGFM0385865AMWD061John SmithExample@example.com$275.00$242.980.88$242.9810/22/201801/17/201901/17/201987CargoCompleted
708781BGAC0435591DMS074John SmithExample@example.com$2,490.00$1,552.430.62$953.1310/22/201801/28/201901/28/201998CargoCompleted
711162MLNQ0532319CRWV31004John SmithExample@example.com$2,455.00$1,154.570.47$486.2810/22/201801/16/201901/16/201986CargoCompleted
695307AGFM0340698CRWV31004John SmithExample@example.com$2,150.00$0.000.00$0.0002/11/201902/11/201902/11/20190CargoDenied
725510BGAC0452576CRWV31030John SmithExample@example.com$1,000.00$0.000.00$0.0002/12/201902/12/201902/12/20190RemediationCompleted
707778CNNQ0517260DMS093John SmithExample@example.com$2,150.34$0.000.00$0.0002/14/201902/26/201902/26/201912CargoDenied
709743CNNQ0520109DMS075John SmithExample@example.com$3,458.96$0.000.00$0.0002/14/201903/07/201903/07/201921Loss/DamageFile 13
725237WKFS0081938CRWV31004John SmithExample@example.com$699.00$699.001.00$0.0002/14/201902/14/201902/14/20190Loss/DamageCompleted
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
My 5 cent, PQ has a much steeper learning curve over VBA.
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,739
Members
449,050
Latest member
excelknuckles

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