Forum Discussion
kirupab390
Mar 16, 2019Copper Contributor
Split a Sentence at a specific point using excel formula
I need an help to split a sentence using excel formula: For example see the below sentance 692 RUTLAND LLC 1,569.41 34 E 01820 182-183 I need only "692 RUTLAND LLC" alone from the above sent...
- Mar 16, 2019A formula cannot be used unless there is a specific pattern for each string of your data.
Twifoo
Mar 16, 2019Silver Contributor
If you want to extract the first 3 words in A1, the formula in B1 is:
=LEFT(A1,
FIND("|",
SUBSTITUTE(A1," ","|",3))-1)
=LEFT(A1,
FIND("|",
SUBSTITUTE(A1," ","|",3))-1)
kirupab390
Mar 16, 2019Copper Contributor
ThanksTwifoo for your immediate response. If I have any number at the end, then how can I extract the string? Like I asked in the question. Your help is much appreciated.
- TwifooMar 16, 2019Silver ContributorWhat do you mean by "any number at the end"?
- kirupab390Mar 16, 2019Copper Contributor
HITwifoo
If for example, my strings are
692 RUTLAND LLC 1,569.41 34 E 01820 182-183
711 GAS INC DON 20,991.72 34 E 06980
I need to separate the 692 RUTLAND LLC & 711 GAS INC DON from the above strings..
Thanks in Advance..
- TwifooMar 16, 2019Silver ContributorA formula cannot be used unless there is a specific pattern for each string of your data.