How to extract text from string?

Viewed 51

I want to extract 2 from the string in cell C3 and return it as the result of the function in cell E3:

enter image description here

Probably SPLIT is the wrong approach here.

Edit:

I replaced the 2 with s because some approaches work for numbers but not for letters:

enter image description here

1 Answers

Try the following

=REGEXEXTRACT(A1,"\d")*1

enter image description here


Following OP's edit

=REGEXEXTRACT(A2,";(.*),")  

enter image description here

Please read more about REGEXEXTRACT

Related