View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
[email protected] lchenigle@gmail.com is offline
external usenet poster
 
Posts: 2
Default Help to deciper the String Extraction formula


Found this, but need help to decipher the formula

==========================================
* returns the characters between the 3rd and 4th underscores (_):*

With Text in Cell A1: COMP_PROG_v1_ABCD_01
This formula in Cell B1 returns the characters between the 3rd and 4th underscores (_): B1: =TRIM(LEFT(SUBSTITUTE(MID(A1,FIND("|",SUBSTITUTE(A 1,"_","|",3))+1,LEN(A1)),"_",REPT(" ",LEN(A1))),LEN(A1)))
In the above example, the formula returns: ABCD
================================

Thanks.