State Codes in Excel: Ultimate Cheat Sheet

Eric Aug 20, 2026

From financial statements to zip codes, Excel spreadsheets are versatile tools for managing and organizing data. State codes, essential for many geolocation tasks, are no exception. Let's delve into how state codes can be effectively utilized and managed within Excel.

GST State Code List in Excel (Download for Free) - ExcelDemy
GST State Code List in Excel (Download for Free) - ExcelDemy

The United States has an alphabetical two-letter code for each state, agreed upon by the U.S. Postal Service. These state abbreviations are universally recognized and invaluable for tasks like standardization in data entry, record keeping, and even data manipulation.

How to Convert Zip Codes to States Using Excel Formulas (5 Methods) - ExcelDemy
How to Convert Zip Codes to States Using Excel Formulas (5 Methods) - ExcelDemy

Integrating State Codes into Excel

To leverage state codes in Excel, you can either input them manually or import data that already includes these codes.

Zip Code in Excel (Insert, Display, Format & Remove) - ExcelDemy
Zip Code in Excel (Insert, Display, Format & Remove) - ExcelDemy

For manual entry, maintain a dedicated column for state codes. By doing so, you can sort, filter, or pivot data based on states. Use the 'State' dropdown in Excel's 'State' field to ensure consistency in data entry.

Using Excel's Built-in Data Validation

How to Find 2 Letter State Abbreviations in Excel (4 Ways) - ExcelDemy
How to Find 2 Letter State Abbreviations in Excel (4 Ways) - ExcelDemy

Excel's Data Validation feature helps maintain data integrity by allowing only accepted input. To set up state code validation:

  1. Select the cell(s) that need validation.
  2. Head to the 'Data' tab, then 'Data Validation'.
  3. Choose 'List' under the 'Allow' drop-down.
  4. Enter the two-letter state codes in the 'Source' field, separated by commas.
  5. Click 'OK' to confirm validation settings.

Calculating Distance or Time Zones

microsoft office shortcuts to save time every day
microsoft office shortcuts to save time every day

Once state codes are integrated, you can perform calculations based on geographical data. For instance, Excel's 'Days360' function can estimate distances between states using a simplified mileage table from the U.S. Bureau of Public Roads.

Moreover, state time zones can be utilized for scheduling or tracking purposes. You can create a simple VLOOKUP formula to find the time zone corresponding to each state code.

glyphs for State Names

The Ultimate Guide to 50 States Abbreviations in Excel
The Ultimate Guide to 50 States Abbreviations in Excel

Though state codes are more common, sometimes you may need to display full state names. Excel provides built-in glyphs, or symbols, to represent these names without disturbing data structure.

Glyphs like '► Louisiana' can be created by right-clicking in Excel, selecting 'Insert Symbol', and browsing through the available glyphs.

the top ten excel shortcut keys are shown in green and white, with an arrow pointing
the top ten excel shortcut keys are shown in green and white, with an arrow pointing
Excel Cheat Sheet
Excel Cheat Sheet
the excel keyboard keys are shown in green and black, as well as numbers for each key
the excel keyboard keys are shown in green and black, as well as numbers for each key
the 50 excel formulas every professional should know infographicly for each individual to use
the 50 excel formulas every professional should know infographicly for each individual to use
Microsoft Excel Shortcut Keys Cheat Sheet | Work Faster & Save Time ⚡📊
Microsoft Excel Shortcut Keys Cheat Sheet | Work Faster & Save Time ⚡📊
the excel must know formulas for each type of text, including numbers and symbols
the excel must know formulas for each type of text, including numbers and symbols
a poster with numbers, symbols and other things to see in the text below it
a poster with numbers, symbols and other things to see in the text below it
the excel shortcut keys list is shown in blue and pink, with numbers for each key
the excel shortcut keys list is shown in blue and pink, with numbers for each key
the excel shortcut keys poster is shown in green and white, with instructions for each key
the excel shortcut keys poster is shown in green and white, with instructions for each key

Creating State Maps

databases like Google Maps API offer data that can be fed into Excel to generate maps based on state codes. Tools like Tableau or Power BI can also visualize data, including maps, for interactive presentations.

In your ongoing efforts to harness the power of Excel, remember that state codes are just one of many data points that can be strategically incorporated. This will not only enhance your spreadsheets' functionality but also streamline your workflows. Happy coding!