ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Lookup Help (https://www.excelbanter.com/excel-discussion-misc-queries/166539-lookup-help.html)

jgundel

Lookup Help
 
I am trying to look up UPC values in column B. If a UPC listed in Column B
is also listed anywhere in Column C, then I want to return 'Yes" in column D.
If not I want to return 'no". I am sure this is simple, but I can't figure
it out from Lookup help. Thanks!

example:

Column B Colum C Column D
77777 11111 YES
22222 77777 NO
55555 66666 NO

carlo

Lookup Help
 
Hi jgundel

in Column D (i started with row1) you enter following formula:

=if(iserror(vlookup(B1,C:C,1,false)),"no","yes")

hth

Carlo


On Nov 19, 9:11 am, jgundel wrote:
I am trying to look up UPC values in column B. If a UPC listed in Column B
is also listed anywhere in Column C, then I want to return 'Yes" in column D.
If not I want to return 'no". I am sure this is simple, but I can't figure
it out from Lookup help. Thanks!

example:

Column B Colum C Column D
77777 11111 YES
22222 77777 NO
55555 66666 NO



pinmaster

Lookup Help
 
Hi,

Try this:

=IF(COUNTIF($C$1:$C$1000,B1)0,"Yes","No")
copy down

HTH
Jean-Guy

"jgundel" wrote:

I am trying to look up UPC values in column B. If a UPC listed in Column B
is also listed anywhere in Column C, then I want to return 'Yes" in column D.
If not I want to return 'no". I am sure this is simple, but I can't figure
it out from Lookup help. Thanks!

example:

Column B Colum C Column D
77777 11111 YES
22222 77777 NO
55555 66666 NO



All times are GMT +1. The time now is 01:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com