Hi
I am trying split a column of cells into two columns, however my data does not have specific delimiters. ie
Joe Blogs DeptA xxxx
Ian Smart DeptB xyxy
I need to split into 2 cells after the name and before the Dept
@gonhaddock , I wonder if you might want to also ensure that De begins at a word boundary? putting (.+\b) in place of just (.+) - especially if case-insensitive.
@mgirdwood , unless you have a list of actual department names, itās going to potentially be a bit āhit and missā.
What if you have:
Ivan Denisovich Department for Siberian Vacations
but without additional information on valid names, or valid departments Iād say that what @gonhaddock has provided is the likely best solution
Hello @takbb
I understand your concerns, my answer was generic to the challenge description.
However, the best way to ask in forum, is with a sharing sample of representative data, allowing us to scope the solution.
If the āDeā always start with upper case, I would avoid the operator (?i).
(.+)(\bDe.+)
This can be a better approach for the time being.
Regards
PS. Great about āIvan Denisovich Department for Siberian Vacationsā ,
in this case there wouldnāt be a problem as the code is greedy; but what about
āIvan Denisovich Department for Denmark Vacationsā (?)