This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
I am working with a set of data that I need to concatenate into one field in the form of a sentence - I have been successfully able to concatenate this data using formulas, but I am running into an issue with one of our formatting requirements. The data elements must be separated out by commas for the most part, except for the last delimiter which must take the form of " and ". Please see below for examples of what I have and what I need.
Ex. Current - bank account number,credit card number,address
Ex. Needed - bank account number,credit card number and address.
I had the idea to attempt to use the below formula in the formula tool to achieve this (where "Summary" is my concatenated field, but I am receiving the below error when i try this. Any help would be greatly appreciated!
Formula : Left([Summary], Length([Summary]-FindString(ReverseString([Summary]),","))+" and "+Right([Summary], Length([Summary]-FindString([Summary], " and "))))
Error: "Formula: invalid type in subtraction operator"