Look up or errorif?

SilkyBob

New Member
Joined
Sep 21, 2015
Messages
2
Hi

I have a list of names on tab Y of a spreadsheet which are all 10 characters long and I want Excel to do the following on a different tab (tab X):

Where I enter a matching string of 10 characters in the first column of tab X, populate the adjacent cell to the right with either 'Y' (if the name exists on the column of names on tab Y), or 'N', if it does not). If I can manage this I'd then like to have a kind of 'best match' option with regard to the 10 characters I'm inputting on tab X.

I've tried playing with Look Up and Error If but can't manage it. Can anyone help please? Much appreciated.

Thanks
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Welcome to the forum.

Try

=IFERROR(IF(VLOOKUP(A2,Sheet8!$A$1:$A$30,1,0),"Y"),"N")
 
Upvote 0
Thanks SO much. The second one worked a charm! I've been trying to do that for ages now - I can use it across lots of the things I do!
 
Upvote 0
You're welcome, the 1st one will work on numbers but not text and vice versa.
 
Upvote 0

Forum statistics

Threads
1,214,821
Messages
6,121,755
Members
449,049
Latest member
excelknuckles

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