Good day all,
I have address data that is unfortunately punctuated with line feed characters.
I need to split the data at every 30 characters.... but on the condition that the 30th character cannot be in the middle of a word. If it is, then only the last whole word before the 30th position can stay and the next word after that gets spilled over into the next column for the next 30 characters... on the condition that the 60th character cannot be in the middle of a word etc and so on. Is there any way to do this in excel? I have prepared an example below (manually) as best as I can but please feel free to let me know if any clarifications are needed as I know this may be a tricky one to word correctly for help.
Thanking you all in advance.
I have address data that is unfortunately punctuated with line feed characters.
I need to split the data at every 30 characters.... but on the condition that the 30th character cannot be in the middle of a word. If it is, then only the last whole word before the 30th position can stay and the next word after that gets spilled over into the next column for the next 30 characters... on the condition that the 60th character cannot be in the middle of a word etc and so on. Is there any way to do this in excel? I have prepared an example below (manually) as best as I can but please feel free to let me know if any clarifications are needed as I know this may be a tricky one to word correctly for help.
Thanking you all in advance.
WorkBook1.xlsx | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | 30 characters max per column rounded down to last whole word | |||||||
2 | Address | each col has whole words only that fit under 30 characters per col | ||||||
3 | 74850 Brightly Blazing Glory Days Long Road Candyland Avenue Four Interdimensional Galaxy Rift Sector Seventy Seven Point Six | 74850 Brightly Blazing Glory | Days Road Candyland Avenue | Four Interdimensional Galaxy | Rift Sector Seventy Seven | Point Six | ||
4 | Length of string | 28 | 26 | 28 | 25 | |||
Sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B4:E4 | B4 | =LEN(B3) |