Solved

Excel - VLOOKUP

Posted on 2011-09-12
7
224 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now