Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel: If in list

Status
Not open for further replies.

SQLScholar

Programmer
Joined
Aug 21, 2002
Messages
2,127
Location
GB
Hey,

If i had the below sheet

a 1
b 2
c 3

then in another sheet i had

2
1
3
1

Then i wanted a column which said

find the figure in the other sheet.... if its corrisponing character is B then put yes otherwise put know

so it would be

2 yes
1 no
3 no
1 no

how would i do this coloum

Cheers

Dan

----------------------------------------
There are 2 types of computer, the prototype and the obsolete!!
 
Hi,

If you don't mind reversing the order of the columns in sheet1 you could just do a vlookup, so:

=IF(VLOOKUP(A1,sheet2!$A$1:$B$3,2,FALSE)="b","Yes","No")

if this is all your trying to achieve then this should suffice
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top