Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
the details are already mentioned in it...please could sme1 help in sorting this thing out...thanks
"lookup" returns a vector, not a scalar value. This is necessary, as there could be more than one match and its a vector even if only one match was found. So if you are sure there is only one match or you will be happy with the first one in every case, you could write "B <-- lookup(.......)[0". That way B will be a scalar and can be compared to another.
I think you need to explain a little more clearly and upload the Excel worksheet containing the data.
Mike