Good afternoon,
I would like to find a simple formula that will return the result based on the substring character.
Let's say I have a field called, "name" (25 characters long).
I am looking formula similar to this:
If substring({name},2) = "R" then
"Foreign"
Else
"Domestic"
// if the 2nd character of the field "name" is "R" then, return me the value of "Foreign" otherwise, return me the value of "Domestic".
I am trying to use Instr but I might use it the wrong way because it does not work.
Thanks a lot !
I would like to find a simple formula that will return the result based on the substring character.
Let's say I have a field called, "name" (25 characters long).
I am looking formula similar to this:
If substring({name},2) = "R" then
"Foreign"
Else
"Domestic"
// if the 2nd character of the field "name" is "R" then, return me the value of "Foreign" otherwise, return me the value of "Domestic".
I am trying to use Instr but I might use it the wrong way because it does not work.
Thanks a lot !