If isnumber search

kyleball

New Member
Joined
Mar 12, 2013
Messages
37
Hi All!

I have 1000's of rows that I want to pull out if they say a particular name; the below works great:

=IF(ISNUMBER(SEARCH("Kyle Ball",Y2)),"Kyle Ball",IF(ISNUMBER(SEARCH("Peter Pan",Y2)),"Peter Pan",""))


I did this before for about 10 names - so it was quite manual until written.

The problem is - someone else has requested it, and it's about 50 names. What would be great is if I could search a table, e.g:

[TABLE="width: 184"]
<colgroup><col span="2"></colgroup><tbody>[TR]
[TD]Contains[/TD]
[TD]Bring Back[/TD]
[/TR]
[TR]
[TD]Kyle Ball[/TD]
[TD]Kyle Ball[/TD]
[/TR]
[TR]
[TD]Peter Pan[/TD]
[TD]Peter Pan[/TD]
[/TR]
[TR]
[TD]Mary Poppins[/TD]
[TD]Mary Poppins
[/TD]
[/TR]
</tbody>[/TABLE]

Then I would not have to write each name individually, the formula would be shorter, and added names would be pain free.

Is this possible?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
How about this with the names to return in sheet2 column A and if not found return "".

=IFERROR(VLOOKUP(A1,Sheet2!A:A,1,0),"")
 
Upvote 0
How about this with the names to return in sheet2 column A and if not found return "".

=IFERROR(VLOOKUP(A1,Sheet2!A:A,1,0),"")

Hi Steve,

Sorry I should have been more clear. The text does not just say the name, it has other things in it. Which is why I use the search formula above.

E.g. KYLE BALL/54245/EMPLOYEE SUBSISTENCE or 54245/Kyle Ball/T&E

Etc.

Are you familiar with autofilter in Excel ?

Unfortunately not - I will google it!


Just to make my original request more clear:

I currently use this formula:

=IF(ISNUMBER(SEARCH("Kyle Ball",Y2)),"Kyle Ball",IF(ISNUMBER(SEARCH("Peter Pan",Y2)),"Peter Pan",""))

To search a column with 1000's of rows; I have to search and return it because the cell contains more than just the name. The problem is I have around 50 names to do it with, so was wondering if I can search from a table, like A1:B50 or would I have to search a specific name and return name 50 times?
 
Upvote 0
Have a go with this one:

=IF(ISERROR(FIND(Sheet2!A:A,A1)),"",Sheet2!A:A)
 
Upvote 0
There may be there may not be. Im not skilled enough to think of a way. Is there consistency in the extra wording?

You said:

KYLE BALL/54245/EMPLOYEE SUBSISTENCE or 54245/Kyle Ball/T&E

Are they all like this? Possible to extract kyle ball from these easily enough using the /
 
Upvote 0

Forum statistics

Threads
1,222,408
Messages
6,165,870
Members
451,989
Latest member
DannyBoy1977

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