SamCole
6 years agoQrew Cadet
Parse out multiple pieces of text from a string and combine them into a new string
I have a field that is a text string of item serial numbers for a given project, and are comma separated. Typically the value of the field is something like this for each project:
"ULT123, 512001, 512002, ULT456, ULT789, 412001"
(the string will be of varying lengths and not in alpha/numerical order. Could have one serial #, could have several.)
I am trying to create a new formula field which will pull out only the serial numbers that begin with "ULT" (and keep them comma separated, if possible). Would like the formula field to generate the following string from the original string above:
"ULT123, ULT456, ULT789"
Can't seem to figure out how to use the Part function to pull out each instance of a serial beginning with "ULT", or do I need to use variables?
------------------------------
Sam Cole
------------------------------
"ULT123, 512001, 512002, ULT456, ULT789, 412001"
(the string will be of varying lengths and not in alpha/numerical order. Could have one serial #, could have several.)
I am trying to create a new formula field which will pull out only the serial numbers that begin with "ULT" (and keep them comma separated, if possible). Would like the formula field to generate the following string from the original string above:
"ULT123, ULT456, ULT789"
Can't seem to figure out how to use the Part function to pull out each instance of a serial beginning with "ULT", or do I need to use variables?
------------------------------
Sam Cole
------------------------------