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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
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
this will bring all the rows with the word pension and pensionfund.but
What to do?

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,"")
 
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.
A1:[Event "1st American Chess Congress"]

<colgroup><col width="432"></colgroup><tbody>
</tbody>

A2.EventDate "1857.??.??"]

<tbody>
</tbody>

A3:[Date "1857.10.23"]

<colgroup><col width="432"></colgroup><tbody>
</tbody>


A4;[Event "Lugano Ol"]

<colgroup><col width="432"></colgroup><tbody>
</tbody>

A5:[EventDate "?"]

<colgroup><col width="432"></colgroup><tbody>
</tbody>

A6:[Event "Rubinstein mem"]
A7:[EventDate "?"]

<colgroup><col width="432"></colgroup><tbody>
</tbody>

<colgroup><col width="432"></colgroup><tbody>
</tbody>
NOW I want that excel on column B show "erase me" against rows A1.A4,A6.
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,840
Members
449,193
Latest member
MikeVol

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