Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Excel - VLOOKUP

Posted on 2011-09-12
7
Medium Priority
?
234 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 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

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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 42

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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

Lost Word File? Eagerly, need it back? Read ahead; this File Recovery guide is for you.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
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.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

916 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