function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
LGSOChairLGSOChair 

VLOOKUP problems: field doesn't exist.

Hello
As a solution to a question I posted the other day (http://community.salesforce.com/sforce/board/message?board.id=general_development&thread.id=23809) someone suggested using a VLOOKUP (which is a brilliant idea :smileyhappy:)

Now I've been brave and set up a custom object with two fields in it:

Custom object = Membership_Category_for_Lookup (that's the object name)
Fields = Base_Fee and Membership_Category

So looking at the help section, I thought my VLOOKUP formula should be:

VLOOKUP($ObjectType.Membership_Category_for_Lookup.Fields.Base_Fee,
$ObjectType.Membership_Category_for_Lookup.Fields.Name,
 Membership_Category__c )

But I'm getting an error that says the field $ObjectType.Membership_Category_for_Lookup.Fields.Base_Fee doesn't exist.

I'm a bit stumped. I've tried several things like using the API name and so on, but no luck.

Anyone got any suggestions?

Thanks
Nicole
DatajunkieDatajunkie
I haven't followed the entire chain of events, but it sounds like you're trying to do the same thing that I am, with the same roadblock.
 
Best I can tell, you can't use VLOOKUP in a formula field. You can only use it in validation rules.
 
It's a nifty trick. It just doesn't go far enough! We really, really need this functionality to be useful in formula fields so we can populate fields, not just prevent invalid saves.
 
If you find another way to accomplish this, I would love, love, love to hear how you did it!
fifedogfifedog
that is correct, it's only good for validation rules.
Kent ManningKent Manning
Yes unfortunately VLOOKUP only works in validation rules.  I sure wish they would make it available to formula fields. 

Go to http://ideas.salesforce.com/article/show/10087899/Expanding_the_VLOOKUP_Formula and vote for this.