Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Need help writing a simple formula for a calculated column

$
0
0

I have a choice column named "City" with three choices:
1. Los Angeles
2. Houston
3. Denver

I have a calculated column named "State" and want it to display a string based on the following condtions:
1. If City is "Los Angeles" then display "CA"
2. If City is "Houston" then display "TX"
3. If City is "Denver" then display "CO"

This is what I have so far but the syntax is incorrect:
=IF([City]="Los Angeles", CA), IF([City]="Houston", TX), IF([City]="Denver", CO)



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>