- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Can ":" be a delimiter?
I need to delimit a string that contains a colon ":" as a delimiter. I can replace all instances with something else. Can I use it literally?
Slán
SpannerHead
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Can ":" be a delimiter?
Not sure what you are trying to do? It is just a character, you can use it how ever you want with strings?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Can ":" be a delimiter?
Hi,
If you try to extract a substring from a string, you can define any delimiter you want (See example below)
Word( 1, "AAA:BBB:CCC", ":" )
If you need to import a text file with ":" as a delimiter, I suggest uploading the raw text into one column and splitting it using the Column Utilities > Text to Columns (defining the column separator as ":").
If neither approach meets your needs, please share an example of what you are trying to achieve.
Best,
TS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Can ":" be a delimiter?
I guess I had the source of the problem defined incorrectly. If I include ":" as a delimiter together with "_" I seem to be getting red ink and a failed formula.
Slán
SpannerHead
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Can ":" be a delimiter?
Hi,
If you need to specify multiple delimiters with the Word function, it's a single character string containing all the delimiters. For your example, you would specify ":_" as the third argument to Word.
Monica
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Can ":" be a delimiter?
Ah.. So you wish to have two strings to separate using Word? Add all the delimiters into the same string and it should work
Word(2, "A_B:C", "_:")