Array search

JonathanG

New Member
Joined
Oct 27, 2014
Messages
1
Hi!

I'm trying to write a function for each item in a list to compare if it's in an array, and then write Yes or No, in the box next to the name. The hard part is the names don't line up perfectly.

I have a table that looks like this...
Last NameVote?
Smith
Johnson
Jones

<tbody>
</tbody>


And some data that looks like this...

NameYesNo
John Smithx
Rev Dr Johnsonx
Fred Jonesx

<tbody>
</tbody>

And I want to output a table that looks like this...

Last NameVote?
SmithYes
JohnsonNo
JonesYes

<tbody>
</tbody>

But I'm rusty at which formula to use. I was thinking of an IF() or a LOOKUP(), but I'm not sure on the search syntax, since the names don't line up perfectly. Is it easier to use an array function on this?

Any advice appreciated :)

Excel 2003
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,215,727
Messages
6,126,508
Members
449,316
Latest member
sravya

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