I need some help in capturing a specific string of characters within a larger string. Following is an example cell:
Glutathione [ C10 H17 N3 O6 S, tgt=93.62, overall=93.62, CAS ID=70-18-8, KEGG ID=C00051 ]
All I want to retain is C10H17N3O6S. Having removed the extra spaces. It looks like LEFT, MID and RIGHT functions will not work because the start of the string is variable, additional examples:
L-Aspartate [ C4 H7 N O4, tgt=81.15, overall=81.15, CAS ID=56-84-8, KEGG ID=C00049 ]
Dodecanoic acid [ C12 H24 O2, tgt=98.79, overall=98.79, CAS ID=143-07-7, KEGG ID=C02679 ]
I need a formula that will capture all text between the characters "[" and ",". Once that is complete I need to use a TRIM function to remove all spaces. A solution here will save me 6-8hrs prior to a Monday morning deadline. Thank you in advance for any input.
Bookmarks