pratheesh1983
Board Regular
- Joined
- Aug 13, 2015
- Messages
- 57
- Office Version
- 365
- Platform
- Windows
I have an excel table with a cell that contains message data, and the message data is divided into multiple fields that can be easily identified using the field ID format, i.e., "FEILD NO." Now have two requirements: first, to pull the complete data content of a specific field; and second, from the same field, to pull three words before the text (which would be mentioned in a separate cell) and three words after the text. If there are no words (or letters) before or after that specific word in the specific field, then there is no need to pull the content. Hence, to extract these two pieces of information, I am looking for a formula in Excel that could extract this information based on the information in different cells. I have provided below an example and the last two columns where I am looking for a formula, but for reference, I have provided the content that needs to be extracted. I would appreciate support in finding a formula for this. Thanks
Message Data | Field ID | Text To be searched | Field Content (**FORMULA**) | Surrounding words around the text
| |
:OP:0213025 ABC BANK TBK SUBROTO :OI:XYZYPESRXXX AMO UNIVERSE 20-01 :B1:PKRSTDXXX WYNE NETWORK CHARLES BUILDING ABC :B2: 13976111 RAHUL JURASIC INDUSTRIES :PD1:SUSANA GRACIA THOMAS JOHN 7892567 56789 | PD1 | ANA | SUSANA GRACIA THOMAS 7892567 56789 | SUSANA GRACIA THOMAS | |
:OP:0213025 ABC BANK TBK SUBROTO :OI:XYZYPESRXXX AMO UNIVERSE 20-01 :B1:PKRSTDXXX WYNE NETWORK CHARLES BUILDING ABC :B2: 13976111 RAHUL JURASIC INDUSTRIES :PD1:SUSANA GRACIA THOMAS JOHN 7892567 56789 | B2 | RAHUL | 13976111 RAHUL JURASIC INDUSTRIES | RAHUL JURASIC INDUSTRIES | |
:OP:0213025 ABC BANK TBK SUBROTO :OI:XYZYPESRXXX AMO UNIVERSE 20-01 :B1:PKRSTDXXX WYNE NETWORK CHARLES BUILDING ABC :B2: 219662341 ELLE LARA, FRANCISCO JAVIER JOHN :PD:SUSANA GRACIA MINGUILLON 7892567 56789 | B2 | E LARA | 219662341 ELLE LARA, FRANCISCO JAVIER JOHN | ELLE LARA, FRANCISCO JAVIER JOHN |