Find specific text

mattyman

New Member
Joined
Feb 15, 2004
Messages
22
Hello All

I need to pull a specific word from a string of text in a cell and have that word shown in an adjacant cell.
For example A1 will contain the text "Smith Sun Alliance Pension Fund"
I need B2 to show "Pension". I cannot use any filtering or text to columns as the word Pension can be anywhere within the text in A1 and I have thousands of entries. So I need a function.

Help would be as always greatly appreciated.

Thanks

Matt
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Thanks! I was looking for the same thing...did the trick...
I posted a similar challenge here:
http://www.mrexcel.com/forum/excel-...ontaining-specific-part-text.html#post3349210

Thanks again!

See your original thread for a lookup version...

The array formula just-jon, a great friend, has proposed...

{=INDEX(D$1:D$3,MATCH(1,(--ISNUMBER(SEARCH(D$1:D$3,A1))),0),0)}

can be re-written as:

=LOOKUP(9.999999999999999E+307,SEARCH(D$1:D$3,A1),D$1:D$3)

which needs only enter.
 
Upvote 0
Let's try...

=IF(COUNT(SEARCH("|"&"Pension"&"|","|"&A1&"|")),"Pension","")

If you place the Pension entry in E1...

=IF(COUNT(SEARCH("|"&$E$1&"|","|"&A1&"|")),$E$1,"")

i have entries in column A1:A999. some rows contain the text Event and some Eventdate. I want to find out the rows with the word event rows with the entry eventdate will remain , that should not come in the search)and to delete them.
on D1 i have entered your formula replacing the word Event for the word pension, but nothing happened. help pls
 
Upvote 0
i have entries in column A1:A999. some rows contain the text Event and some Eventdate. I want to find out the rows with the word event rows with the entry eventdate will remain , that should not come in the search)and to delete them.
on D1 i have entered your formula replacing the word Event for the word pension, but nothing happened. help pls

Given:

A1: event
A2: eventdate
A3: event

What do you want to happen?
 
Upvote 0
Given:
suppose i have the following in a range A1:A999.
[TABLE="width: 432"]
<colgroup><col width="432"></colgroup><tbody>[TR]
[TD="width: 432"]A1:[Event "1st American Chess Congress"]
[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 432"]
<tbody>[TR]
[TD="width: 432"]A2.EventDate "1857.??.??"]
[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 432"]
<colgroup><col width="432"></colgroup><tbody>[TR]
[TD="width: 432"]A3:[Date "1857.10.23"]
[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="width: 432"]
<colgroup><col width="432"></colgroup><tbody>[TR]
[TD="width: 432"]A4;[Event "Lugano Ol"]
[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 432"]
<colgroup><col width="432"></colgroup><tbody>[TR]
[TD="width: 432"]A5:[EventDate "?"]
[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 432"]
<colgroup><col width="432"></colgroup><tbody>[TR]
[TD="width: 432"]A6:[Event "Rubinstein mem"]
[TABLE="width: 432"]
<colgroup><col width="432"></colgroup><tbody>[TR]
[TD="width: 432"]A7:[EventDate "?"]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
NOW I want that excel on column B show "erase me" against rows A1.A4,A6.
 
Upvote 0

Forum statistics

Threads
1,224,836
Messages
6,181,252
Members
453,028
Latest member
letswriteafairytale

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