

1. Create a UDF (User Defined Function)
To create this Function, execute the following steps
This Code lines will create function Matched ()
In Cell E2 Type
= Matched (product, Range("stk"), 0)
Syntax
2. Use Excel Formulas (XOR)
MATCH(lookup_value, lookup_array, [match_type])
=MATCH(E17,$C$17:$C$22,0)