I want to detect a part of string from a cell and then apply vlookup to get corresponding value from another table. Please refer below tables. Values are to be extracted from second table into first table: (there are also few spaces in first table in start of string)
First Table
[TABLE="class: grid, width: 500"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Structure[/TD]
[TD="align: center"]Value[/TD]
[/TR]
[TR]
[TD]** WBS 99OP-11223.P.01 Project RT[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]* WBS 99OP-11223.P.01.01 Project Roots Data[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] WBS 99OP-11223.P.01.01.01 First Line Item[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] WBS 99OP-11223.P.01.01.02 Second Line Products[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] WBS 99OP-11223.P.01.01.03 Third Line Items[/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
Second Table
[TABLE="class: grid, width: 476"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Structure[/TD]
[TD="align: center"]Value[/TD]
[/TR]
[TR]
[TD]99OP-11223.P.01[/TD]
[TD="align: right"]25,254,759[/TD]
[/TR]
[TR]
[TD]99OP-11223.P.01.01[/TD]
[TD="align: right"]25,254,759[/TD]
[/TR]
[TR]
[TD]99OP-11223.P.01.01.01[/TD]
[TD="align: right"]1,910,442[/TD]
[/TR]
[TR]
[TD]99OP-11223.P.01.01.02[/TD]
[TD="align: right"]7,176,356[/TD]
[/TR]
[TR]
[TD]99OP-11223.P.01.01.03[/TD]
[TD="align: right"]3,796,289[/TD]
[/TR]
</tbody>[/TABLE]
First Table
[TABLE="class: grid, width: 500"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Structure[/TD]
[TD="align: center"]Value[/TD]
[/TR]
[TR]
[TD]** WBS 99OP-11223.P.01 Project RT[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]* WBS 99OP-11223.P.01.01 Project Roots Data[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] WBS 99OP-11223.P.01.01.01 First Line Item[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] WBS 99OP-11223.P.01.01.02 Second Line Products[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] WBS 99OP-11223.P.01.01.03 Third Line Items[/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
Second Table
[TABLE="class: grid, width: 476"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Structure[/TD]
[TD="align: center"]Value[/TD]
[/TR]
[TR]
[TD]99OP-11223.P.01[/TD]
[TD="align: right"]25,254,759[/TD]
[/TR]
[TR]
[TD]99OP-11223.P.01.01[/TD]
[TD="align: right"]25,254,759[/TD]
[/TR]
[TR]
[TD]99OP-11223.P.01.01.01[/TD]
[TD="align: right"]1,910,442[/TD]
[/TR]
[TR]
[TD]99OP-11223.P.01.01.02[/TD]
[TD="align: right"]7,176,356[/TD]
[/TR]
[TR]
[TD]99OP-11223.P.01.01.03[/TD]
[TD="align: right"]3,796,289[/TD]
[/TR]
</tbody>[/TABLE]