ISNumber / Search

kyleball

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

I have tried to search for this and because I'm trying to be specific the results have not been great, although I'm sure it's there somewhere (just not searching the right things).

What I want to do - if the name in column A is found in column D, I want it to not only let me know but pull in what was found. Data below:


[TABLE="width: 412"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD][/TD]
[TD]Column D[/TD]
[/TR]
[TR]
[TD]olita[/TD]
[TD][/TD]
[TD][/TD]
[TD]olita ( accountant)[/TD]
[/TR]
[TR]
[TD]zara[/TD]
[TD][/TD]
[TD][/TD]
[TD]ella[/TD]
[/TR]
[TR]
[TD]kyle[/TD]
[TD][/TD]
[TD][/TD]
[TD]martin Williams [/TD]
[/TR]
[TR]
[TD]martin[/TD]
[TD][/TD]
[TD][/TD]
[TD]baby zara[/TD]
[/TR]
[TR]
[TD]ella[/TD]
[TD][/TD]
[TD][/TD]
[TD]KYLE

[/TD]
[/TR]
</tbody>[/TABLE]



So next to zara I would want it to return baby zara.

The point I go to was this:

=IF(ISNUMBER(SEARCH(A2,$D$2:$D$6)),$D$2:$D$6,"No")

Which only returned olita ( accountant), and none of the others.

Any help greatly appreciated :)

Thanks,

Kyle
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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