You can simply use countif to do what you are looking for that is...
=countif(Range to check,value to check)
This will give a return 0 if the value is not present or will give you the answer the same value is present as in how many number of times its there.
Enclosed is the workbook for your reference which tells about how vlookup works.
Let me know in case if you need any further help over this.
Saurabh...





by: razauPosted on 2009-10-28 at 09:43:58ID: 25685244
Use following formula in sheet 1
,1,FALSE)
=VLOOKUP(B1,Sheet2!B$1:B$6
above formula look value from sheet1 to sheet 2 if found matching code from sheet 2 it will return value.