scecchin
New Member
Hello
I have attached an example file. I am trying to code a user defined function, (UDF), where I am looking up, and concatenating a first name and last name, based on initials, in a table. My issue is that the table will not always have values, which is logically fine. Unfortunately when the initials are not in the table, the UDF outputs << #VALUE! >>. I am trying to replace that with no value, "", using the << IfError >> function.
I cannot seem to get it to work. The attached file has the coding for three variations of the UDF, as well as an example using a normal formula. Three scenarios are shown, one with initials and a first and last name in the table, a second scenario with initials only, in the table, and the third scenario where there are no initials and no first and last names in the table (this is what is causing me the problems).
Thanks for your help.
Sergio
I have attached an example file. I am trying to code a user defined function, (UDF), where I am looking up, and concatenating a first name and last name, based on initials, in a table. My issue is that the table will not always have values, which is logically fine. Unfortunately when the initials are not in the table, the UDF outputs << #VALUE! >>. I am trying to replace that with no value, "", using the << IfError >> function.
I cannot seem to get it to work. The attached file has the coding for three variations of the UDF, as well as an example using a normal formula. Three scenarios are shown, one with initials and a first and last name in the table, a second scenario with initials only, in the table, and the third scenario where there are no initials and no first and last names in the table (this is what is causing me the problems).
Thanks for your help.
Sergio