Text String Extraction --2 words

Huizar

Board Regular
Joined
Aug 11, 2016
Messages
94
Hello All,

Need some help. Im looking at a problem summary cell and looking to extract key words. For example if the summary has TRON Then extract TRON. If the Word has TRON or AL2, then give me TRON. If the summary has AL2 then give me AL2. I know there is an OR that goes in my formula but not sure how to use it.



[TABLE="width: 500"]
<tbody>[TR]
[TD]Problem Summary[/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD]TRON is OUT on NAL2/ Trend Low[/TD]
[TD]TRON[/TD]
[/TR]
[TR]
[TD]High DIff TRON[/TD]
[TD]TRON[/TD]
[/TR]
[TR]
[TD]T2 - RUNNING DNR AL2[/TD]
[TD]AL2[/TD]
[/TR]
</tbody>[/TABLE]


Thanks.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Hey Aladin, that didn't seem to work just a bunch of #N/A. Not sure why that is occurring.

Shoult work as advertised...


Book1
AB
1Problem SummaryResult
2TRON is OUT on NAL2/ Trend LowTRON
3High DIff TRONTRON
4T2 - RUNNING DNR AL2AL2
Sheet1


In B2 entered and copied down:

=LOOKUP(9.99999999999999E+307,SEARCH({"AL2","TRON"},$A2),{"AL2","TRON"})

Are you on a non-American system? If so, dot >> comma, comma >> semi-colon.
 
Upvote 0
Hey Aladain, my bad. I retried it. It worked. What is the 9.9999.. + 307 actually doing by the way?
Thanks!!!


Shoult work as advertised...

AB
Problem SummaryResult
TRON is OUT on NAL2/ Trend LowTRON
High DIff TRONTRON
T2 - RUNNING DNR AL2AL2

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]

[TD="align: center"]3[/TD]

[TD="align: center"]4[/TD]

</tbody>
Sheet1

In B2 entered and copied down:

=LOOKUP(9.99999999999999E+307,SEARCH({"AL2","TRON"},$A2),{"AL2","TRON"})

Are you on a non-American system? If so, dot >> comma, comma >> semi-colon.
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,271
Members
452,628
Latest member
dd2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top