ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Help to deciper the String Extraction formula (https://www.excelbanter.com/excel-discussion-misc-queries/451252-help-deciper-string-extraction-formula.html)

[email protected]

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.


[email protected]

Help to deciper the String Extraction formula
 

OK Got it by stepping through "Evaluate Formula"

Thanks.


All times are GMT +1. The time now is 12:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com