I am trying to write either a formula or Macro to find the last space in a string before the 38th character. My problem is that my data is not standard and I don't want to truncate in the middle of a word that falls at 37 characters. See example below.
[TABLE="width: 438"]
<tbody>[TR]
[TD="width: 438"]Free-bird Real Opportunities And Encyclopedias LLP = 50 Char
[TABLE="width: 438"]
<tbody>[TR]
[TD="class: xl65, width: 438"]Free-bird Real Opportunities And Ency = 37 char truncation
The goal would look like the truncation below where Encyclopedias is not cut in the middle.
Goal = Free-bird Real Opportunities And
Subsequently I will need to pull out the remaining portion of the name (Encyclopedias LLP) into a different cell.
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 438"]
<tbody>[TR]
[TD="width: 438"]Free-bird Real Opportunities And Encyclopedias LLP = 50 Char
[TABLE="width: 438"]
<tbody>[TR]
[TD="class: xl65, width: 438"]Free-bird Real Opportunities And Ency = 37 char truncation
The goal would look like the truncation below where Encyclopedias is not cut in the middle.
Goal = Free-bird Real Opportunities And
Subsequently I will need to pull out the remaining portion of the name (Encyclopedias LLP) into a different cell.
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]