You need to sign in to do that
Don't have an account?
VLOOKUP not working as described in manual?
In the help for VLOOKUP() it says:
VLOOKUP(field_to_return, field_on_lookup_object, lookup_value) and replace field_to_return with the field that contains the value you want returned, field_on_lookup_object with the field on the related object that contains the value you want to match, and lookup_value with the value you want to match.
However when I try to save:
IF(VLOOKUP($ObjectType.Sales_History__c.Fields.Checksum__c,$ObjectType.Sales_History__c.Fields.Checksum__c, Checksum__c)= Checksum__c,True,False)
I receive the error:
Error: Incorrect parameter for function VLOOKUP(). Expected Record Name field.
Why doesn't the manual mention that this field_on_lookup_object MUST be a Name field?? When I try:
IF(VLOOKUP($ObjectType.Sales_History__c.Fields.Checksum__c,$ObjectType.Sales_History__c.Fields.Name, Checksum__c)= Checksum__c,True,False)
I receive no errors, but ofcourse this is not what I want :(
Is this behaviour intended anyway and will you adjust the help text, or is the VLOOKUP() simply not working as intended? Or am I doing something wrong?
Message Edited by Harmpie on 11-14-2008 08:05 AM
Message Edited by Harmpie on 11-16-2008 09:57 AM