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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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,222,103
Messages
6,163,953
Members
451,867
Latest member
csktwyr

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