on 04-16-2018 12:10 PM
Hi there
I need to extract the text from between two specific strings in a field.
For example, the field may look like this:
#Metalwork - Enamel#Cabinet 4 Shelf 2###This is the label text I want to extract.####
I want to extract the text between ### and ####; in other words, I want to extract "This is the label text I want to extract."
Can anyone advise the formula I need to do this? I've tried several options that I've found on forums, but so far none work.
cheers
Karen
Use the ExtractString function:
ExtractString(Yourfield, "###", "####")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use Instr() function
Instr(YourField, '###') will return character number of first #
Then use mid()
Mid(Yourfield, Instr(YourField, '###')+3, Instr(YourField, '####')-1)
Ian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
11 | |
10 | |
8 | |
8 | |
6 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.