Hey all!
I'm trying to search sentences with construction activities for a specific part of that sentence, and give the corresponding output. Here is an example from the file I am working on:
Column A:
[TABLE="width: 416"]
<colgroup><col width="416" style="width:312pt"> </colgroup><tbody>[TR]
[TD="class: xl64, width: 416"]LEVEL 04 - INSTALL STAIRS
[TABLE="width: 416"]
<colgroup><col width="416" style="width:312pt"> </colgroup><tbody>[TR]
[TD="width: 416"]LEVEL 07 - COLUMNS & SHEARWALLS/ STRIP PERIMETER FORM
[TABLE="width: 416"]
<colgroup><col width="416" style="width:312pt"> </colgroup><tbody>[TR]
[TD="width: 416"]LEVEL 07 - STRIP FORMS
[TABLE="width: 416"]
<colgroup><col width="416" style="width:312pt"> </colgroup><tbody>[TR]
[TD="width: 416"]LEVEL 01 - POUR 1
Column B: Column C:
pour 03
strip forms 05
install stairs 03
shearwalls 05
I have looked at endless threads to no avail; these two formulas came closest:
=INDEX(C1:C4,MATCH(A1,B1:B4,-1) :: this somehow gave 05 for all results
=INDEX(C1:C4,MATCH("*"&A1&"*",B1:B4,-1) :: This gave error #NA
I've tried changing the -1 in both of those to 0 and still got error #NA
I've also tried:
=VLOOKUP(A1,B1:C4,2,TRUE)
and = VLOOKUP("*"&A1&"*",B1:C4,2,TRUE), both to no avail.
Please help as I am slowly loosing my mind trying to figure this out! Thanks in advance!
[/TD]
[/TR]
[TR]
[TD="width: 416"][/TD]
[/TR]
[TR]
[TD="width: 416"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
I'm trying to search sentences with construction activities for a specific part of that sentence, and give the corresponding output. Here is an example from the file I am working on:
Column A:
[TABLE="width: 416"]
<colgroup><col width="416" style="width:312pt"> </colgroup><tbody>[TR]
[TD="class: xl64, width: 416"]LEVEL 04 - INSTALL STAIRS
[TABLE="width: 416"]
<colgroup><col width="416" style="width:312pt"> </colgroup><tbody>[TR]
[TD="width: 416"]LEVEL 07 - COLUMNS & SHEARWALLS/ STRIP PERIMETER FORM
[TABLE="width: 416"]
<colgroup><col width="416" style="width:312pt"> </colgroup><tbody>[TR]
[TD="width: 416"]LEVEL 07 - STRIP FORMS
[TABLE="width: 416"]
<colgroup><col width="416" style="width:312pt"> </colgroup><tbody>[TR]
[TD="width: 416"]LEVEL 01 - POUR 1
Column B: Column C:
pour 03
strip forms 05
install stairs 03
shearwalls 05
I have looked at endless threads to no avail; these two formulas came closest:
=INDEX(C1:C4,MATCH(A1,B1:B4,-1) :: this somehow gave 05 for all results
=INDEX(C1:C4,MATCH("*"&A1&"*",B1:B4,-1) :: This gave error #NA
I've tried changing the -1 in both of those to 0 and still got error #NA
I've also tried:
=VLOOKUP(A1,B1:C4,2,TRUE)
and = VLOOKUP("*"&A1&"*",B1:C4,2,TRUE), both to no avail.
Please help as I am slowly loosing my mind trying to figure this out! Thanks in advance!
[/TD]
[/TR]
[TR]
[TD="width: 416"][/TD]
[/TR]
[TR]
[TD="width: 416"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]