Hi, I have a column of text fields varying in length. I need to separate them out into the next field based on # of characters.
I need no more than 30 characters in each field.
I need to split on the first space BEFORE the 30 char limit.
I don't really know how to do this going from the left, but here is what I have:
=IF(ISBLANK(K3),"",IF(LEN(K3)<25,SUBSTITUTE(K3,"|"," "),SUBSTITUTE(LEFT(K3,SEARCH(" ",K3,25)),"|"," ")))
This starts at 25th char and searches for spaces to the right, but if the last word is more than 5 characters then it goes over the 30 limit.
I could change it to 20 and hope that nothing is more than ten chars, but I need it to be reliable.
Also, I am substituting the | with a space.
Please help, thanks!
I need no more than 30 characters in each field.
I need to split on the first space BEFORE the 30 char limit.
I don't really know how to do this going from the left, but here is what I have:
=IF(ISBLANK(K3),"",IF(LEN(K3)<25,SUBSTITUTE(K3,"|"," "),SUBSTITUTE(LEFT(K3,SEARCH(" ",K3,25)),"|"," ")))
This starts at 25th char and searches for spaces to the right, but if the last word is more than 5 characters then it goes over the 30 limit.
I could change it to 20 and hope that nothing is more than ten chars, but I need it to be reliable.
Also, I am substituting the | with a space.
Please help, thanks!