pratheesh1983
Board Regular
- Joined
- Aug 13, 2015
- Messages
- 55
- Office Version
- 365
- Platform
- Windows
I'm looking for a formula in Excel that can extract field content from a field tag that is specified in a cell that is mentioned next to the text. I have provided a message sample that would explain the requirement in more detail.
The formula that I'm using is giving me a blank value in some cells; this may be because of a line break in the respective field from which the data needs to be extracted. I would appreciate it if someone could help me fix this issue.
Formula Used: =TRIM(LEFT(SUBSTITUTE(REPLACE($A2,1,SEARCH($B2,$A2)+LEN($B2),""),CHAR(10),REPT(" ",100)),100))
The formula that I'm using is giving me a blank value in some cells; this may be because of a line break in the respective field from which the data needs to be extracted. I would appreciate it if someone could help me fix this issue.
A | B | C (Formula to be added in this column to extract the data based on field ID mentioned in B column.) | |
TEXT | FEILD | FEILD CONTENT | |
AMAN SOLUTIONS LTD 110, MG ROAD BANGALORE 03 INDIA :YU1:689009882 XYZ OPS :CN2: GEORGE THOMAS | CN2 | GEORGE THOMAS | |
ABC LTD SILICON, MG ROAD BANGALORE 03 INDIA :YU1: BOLONO :CN2: MARTIN :CN1: JACOB ALEX :PB3: JOSE ELEC | CN1 |
|
Formula Used: =TRIM(LEFT(SUBSTITUTE(REPLACE($A2,1,SEARCH($B2,$A2)+LEN($B2),""),CHAR(10),REPT(" ",100)),100))