View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Antonis Antonis is offline
external usenet poster
 
Posts: 4
Default Vlookup function

Hello,

I have the following code

Function Price(Code, Table)
Price = WorksheetFunction.VLookup(Code, Table, 18, False)
End Function

am using this function in order to get from the 18th column the price of a
specific product with Code. The codes of the different products are listed in
the 1st column. On the 1st column the codes of the different products can be
repeated many times.
With this vba code I am using I can get the price of the first listed
product. But I want to get the last.
Can someone please help me solve this problem?

Thank you in advance.