We could certainly automate this with VBA; and perhaps someone with time to do it will stop by. But in the meantime, here's a simply way to get you going.
Create a row with your required widths. (Row 1 in my example.)
Create a formula that concatenates the columns together, using the LEN() and REPT() functions to pad appropriately.
Then you can copy the contents of your composite column over to NOTEPAD, paste in and save and your done.
Formula in F2 and downwards: <ul>[*]=A2&REPT(" ",A$1-LEN(A2))&B2&REPT(" ",B$1-LEN(B2))&C2&REPT(" ",C$1-LEN(C2))&D2&REPT(" ",D$1-LEN(D2))&E2&REPT(" ",E$1-LEN(E2))[/list]
OK - this does actually work -- the problem is that the PHP software of this board strips out double spaces. So don't worry that column F doesn't look right in the posted example.
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.