Forum Discussion
Linnil
3 years agoHelper III
Separate Integer or Decimal from Text
Hi I have values like this: BL, JZ5, CC6.3 So Text combined with an integer or Text combined with a decimal value. I would like the data to split into Col A and Col B Data Col A ...
- 3 years ago
Following will be a simple solution based on test cases presented by you.
For selecting Text = Text.Select([Data], {"A".."Z","a".."z"}) For selecting Number = Text.Select([Data], {"0".."9","."})
slorin
3 years agoSuper User
Or split by character transition
= Table.SplitColumn(
Source,
"Data",
Splitter.SplitTextByCharacterTransition((c) => not List.Contains({"0".."9"}&{"."}, c), {"0".."9"}),
{"Col A", "Col B"})
Stéphane