Solved

Excel - VLOOKUP

Posted on 2011-09-12
7
226 Views
Last Modified: 2012-05-12
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
Comment
Question by:elwayisgod
7 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 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 41

Expert Comment

by:dlmille
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

by:andrewssd3
ID: 36525748
Try:

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

Open in new window

0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 17

Expert Comment

by:andrewssd3
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

by:SANTABABY
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 41

Expert Comment

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

Dave
0
 

Author Comment

by:elwayisgod
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question