Standarized Spacing

gmduece

New Member
Joined
Dec 9, 2015
Messages
17
Hello,



I have several hundred rows of docs(all single line.) All begin with a letter followed by three numbers, then all have a description



Example:



A021 Transfer to remaining Tenant



Is there an expression or formula I can use to make the spacing between the title(A021) and Description(Transfer) the same in all entries



Thank You
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
This formula will collapse all multiple consecutive space, up to a total of 120 of them, down to single spaces...
Code:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"             "," "),"     "," "),"   "," "),"   "," "),"  "," ")

The number of consecutive space in those runs of multiple spaces are 13, 5, 3, 3 and 2. If you do not ever expect more than 12 consecutive space, you can eliminate one of the SUBSTIUTE function calls...
Code:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"     "," "),"   "," "),"   "," "),"  "," ")
 
Last edited:
Upvote 0
I may have described the situation badly. I concatenated two columns, the first containing 4 characters, always one letter first followed always by three numbers...no space. Column two are descriptions of varying lengths. The results of joining the two put all kinds of spacing between the 4 characters and the description is all over the place, from zero to 5 spaces. I want to make all a separation of three spaces

From A021Termination TO A021 Termination

From A021 Termination TO A021 Termination

Thanks
 
Upvote 0
Posting totally took away my formatting. Second example should begin with 5 spaces between Label and Description

Sorry
 
Upvote 0

Forum statistics

Threads
1,215,832
Messages
6,127,152
Members
449,366
Latest member
reidel

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