We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Determine if value is present in a given range in Excel

Steve_Brady
Steve_Brady asked
on
Medium Priority
223 Views
Last Modified: 2012-06-21
Hello,

In Excel (2007), suppose Col A has a couple thousand entries which are random but all of the same format (General).  Furthermore, suppose that Col B also has numerous entries, some of which are identical to entries in Col A and some of which are not.

What formula would go in Col C to indicate, with a simple Yes or No response, whether the adjacent entry in Col B can also be found in Col A?

Here is a quick example (if Col A had only seven rows) showing the desired result in Col C:
 1I thought the correct formula would be something like:

    =IF(LOOKUP(B#,$A$1:$A$7...???...="TRUE"),"Yes","No")

but I can't quite get it to work.  Am I using the correct functions?

Thanks

Comment
Watch Question

Put this in C1

=IF(VLOOKUP(B1,$A$1:$A$1000,1,0)=B1,"yes","No")

and drag it down :)

Sid
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
I was just going to say the 1st one gave me #N/A's but the 2nd fixed that.  I'll study that solution so I understand it.

Thanks
Steve, Would you like me to break it up?

Sid
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.