SOLVED

Return a Number Value That Follows Text in a Linked Cell

Copper Contributor

Hello.  How can I return a number value that follows a text string in a linked cell.  So, if a cell contains "CAA10/BLE15/UNTITLED 5" and I want the destination cell to always display the 2 digit number that immediately follows "BLE" (in this case 15), how could I do that?  Here is an example of the possible source cell contents.

 

Screen Shot 2021-07-03 at 8.36.33 PM.png

 

Thank you, 

Joseph

5 Replies
best response confirmed by JosephA1915 (Copper Contributor)
Solution

@JosephA1915 Try this:

=IFERROR(VALUE(MID(A1,FIND("BLE",A1)+3,2)),"")

where the text string is in A1.  

@Riny_van_Eekelen 

 

Thank you do much.  This seems to work!  Can I ask what the "+3" in the MID formula is for rather than just a "3"?

Thank you "SO" much;)

@JosephA1915 The FIND function finds the first character of the string "BLE". Then you need to add three characters (B,L and E) to arrive at the first position that could be a number, 

Awesome! Thank you:)
1 best response

Accepted Solutions
best response confirmed by JosephA1915 (Copper Contributor)
Solution

@JosephA1915 Try this:

=IFERROR(VALUE(MID(A1,FIND("BLE",A1)+3,2)),"")

where the text string is in A1.  

View solution in original post