Moving specific Text from a cell

David Rod

New Member
Joined
Aug 11, 2014
Messages
6
Hello! I am trying to move two specefic words from a string of text from one cell to another. each cell will have either word, within a string of text, but will not contain both words. I started with this formula: Example: [TABLE="width: 165"]
<tbody>[TR]
[TD]PRT REL TECO
[TABLE="width: 165"]
<tbody>[TR]
[TD]CLSD REL [/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]


=RIGHT(E2,LEN(E2)-FIND("TECO",E2,1)+1)

I was able to get "TECO" in the cell, but i know want to add the word "CLSD" to the formula so it looks for both. If the cell contains TECO OR CLSD, add to the other cell.

I tried to add the "OR" formula but that logic didnt seem to work. Anyother ideas??

Thanks!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Code:
=IFERROR(IF(FIND("TECO",A3),"TECO","Not Found"),IFERROR(IF(FIND("CLSD",A3),"CLSD","Not Found"),"Not Found"))

This is probably a little redundant, but it should work.
 
Upvote 0

Forum statistics

Threads
1,224,798
Messages
6,181,038
Members
453,014
Latest member
Chris258

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