gheyman
Well-known Member
- Joined
- Nov 14, 2005
- Messages
- 2,347
- Office Version
- 365
- Platform
- Windows
I have two fields [LastName] and [FirstName]
I need a calculated field where the expression where if the length of the last name is less than 6 characters the expression uses all the characters but if its not it uses the first five (left(Lastname,5)) And then on the First name if its less than 3 characters it uses all the characters or it uses the first two --- then it concatenates the two.
If this was excel it would be something like this;
Concatenate(If(Len[LastName]<6,Left([LastName],5),[LastName)),(If(Len[FirstName]<3,Left([FirstName],2),[LastName))
I need a calculated field where the expression where if the length of the last name is less than 6 characters the expression uses all the characters but if its not it uses the first five (left(Lastname,5)) And then on the First name if its less than 3 characters it uses all the characters or it uses the first two --- then it concatenates the two.
If this was excel it would be something like this;
Concatenate(If(Len[LastName]<6,Left([LastName],5),[LastName)),(If(Len[FirstName]<3,Left([FirstName],2),[LastName))