Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# Excel - VLOOKUP

Posted on 2011-09-12
Medium Priority
232 Views
I have text in Column A from rows 4 to 300 sorted alphabetically.   I have text in column B from rows 4 to 150 sorted alphabetically.   I need a formula in Column C that will look at the value in Column B and if it's found in Column A it says 'YES'.  If not then 'NO'.
0
Question by:elwayisgod
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 50

Accepted Solution

barry houdini earned 2000 total points
ID: 36525731
Try using this formula in C4 copied down

=IF(COUNTIF(A\$4:A\$300,B4),"YES","NO")

this doesn't rely on the data being sorted - works either way.....

regards, barry
0

LVL 42

Expert Comment

ID: 36525737
Use this formula, paste in C4 and copy down:

=IF(ISNA(MATCH(B4,\$A\$4:\$A\$300,0)),"NO","YES")

Dave
0

LVL 17

Expert Comment

ID: 36525748
Try:

``````=IF(ISERROR(MATCH(B4,\$A\$4:\$A\$300,0)),"NO","YES")
``````
0

LVL 17

Expert Comment

ID: 36525759
Pretty impressive - no answers when I started typing mine - accepted before I pressed submit - you can't hang around here
0

LVL 10

Expert Comment

ID: 36525761
This formula is for cell C4:
=IF(ISNA(MATCH(B4,A:A,0)),"No","Yes")

Copy C4 and select the range C5:C150, then paste.
0

LVL 42

Expert Comment

ID: 36525798
andrewssd3 - I noticed :)  I must have been a split second too slow, lol :)

Dave
0

Author Comment

ID: 36531099
Crap.. I'm sorry fellas.  First one worked so I just accepted.  I'm sure there is many ways to skin this cat :)   I appreciate all the responses.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand â€“ and conveys the hard lessons his company learned in the aftermath.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
###### Suggested Courses
Course of the Month11 days, 18 hours left to enroll