Question

I have 2 drop down fields "City" and "Country". I want a calculated column which will display the first 2 letters from the value selected in drop down fields

Please suggest

Was it helpful?

Solution

Assuming you have Sharepoint deisgner 2013, you can do this at the workflow level. There is an action called "Extract Substring from Start of String". When a user inputs the City and Country fields, use this action to take the first two letters of each field value, and store it in the column you want to have displayed.

EDIT: Updated old answer with answer to original question.

Without having workflows do this, the other way to add this column would have this formula in a calculated column:

CONCATENATE(LEFT([City],2), ",", LEFT([Country],2))
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top