Split Text

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
2,347
Office Version
  1. 365
Platform
  1. Windows
I need to split Text that would be very similar to below. I need to parse out everything After "Ver. " (including the space) so that it ends up in two fields
What comes after "Ver. " will vary and will not always be 11 characters.

Form This: Q019017-03 FinalSweep_CounterOffer71122, Ver. 2 Amort Mtrl

To
Q019017-03 FinalSweep_CounterOffer711222 Amort Mtrl

Thank You.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
can this be in 2 separate columns from the main data

you are not showing the , in the first string - is that expected

wil the , always be followed with a space and then Ver. - then just change the delimiter to ", Ver."

this may not work for you
how about
textsplit(cell with the full string in, "ver.")

if you need to change the contents of the original cell and add a new column only - then its VBA and NOT my area

Book5
ABCD
1Q019017-03 FinalSweep_CounterOffer71122, Ver. 2 Amort MtrlQ019017-03 FinalSweep_CounterOffer71122, 2 Amort Mtrl
2Q019017-03 FinalSweep_CounterOffer71122, Ver. 123452 Amort MtrlQ019017-03 FinalSweep_CounterOffer71122, 123452 Amort Mtrl
Sheet1
Cell Formulas
RangeFormula
C1:D2C1=TEXTSPLIT(A1,"Ver.")
Dynamic array formulas.
 
Upvote 0
Power Query solution:

1670874717466.png
 
Upvote 0
Solution
Thank you both. I went with the Power Query solution
 
Upvote 0
glad to have helped
I seem to have power query now on my 365 mac osx version - so will have to lean that - i didnt think i had it, as OSX excel .....
 
Upvote 0
glad to have helped
I seem to have power query now on my 365 mac osx version - so will have to lean that - i didnt think i had it, as OSX excel .....
Not to sound dramatic, but Power Query is a game changer, and does not deserve to be so "secret".
 
Upvote 0
Not to sound dramatic, but Power Query is a game changer, and does not deserve to be so "secret".
yep, seen a load of replies here using power query - but i think its only just been released on OSX - wasnt there earlier in year - or i missed it last time i researched
 
Upvote 0
I need to split Text that would be very similar to below. I need to parse out everything After "Ver. " (including the space) so that it ends up in two fields
What comes after "Ver. " will vary and will not always be 11 characters.

Form This: Q019017-03 FinalSweep_CounterOffer71122, Ver. 2 Amort Mtrl

To
Q019017-03 FinalSweep_CounterOffer711222 Amort Mtrl

Thank You.
If you have the new function in excel 365, then use:

=TEXTBEFORE(A1,",")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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