Skip to main content

How to convert full state names to abbreviations in Excel?

Author: Xiaoyang Last Modified: 2023-10-26

If you have a column of full state names need to be converted to their corresponding abbreviations in the next to column as following screenshot shown, how could you solve this problem quickly and easily in Excel?

Convert full state names to abbreviations with Vlookup function

Convert abbreviations to full state names with INDEX And MATCH functions

Convert full state names to abbreviations or vice versa with an awesome feature


Convert full state names to abbreviations with Vlookup function

State Name Abbrev
Alabama AL
Alaska AK
Arizona AZ
Arkansas AR
California CA
Colorado CO
Connecticut CT
Delaware DE
Florida FL
Georgia GA
Hawaii HI
Idaho ID
Illinois IL
Indiana IN
Iowa IA
Kansas KS
Kentucky KY
Louisiana LA
Maine ME
Maryland MD
Massachusetts MA
Michigan MI
Minnesota MN
Mississippi MS
Missouri MO
Montana MT
Nebraska NE
Nevada NV
New Hampshire NH
New Jersey NJ
New Mexico NM
New York NY
North Carolina NC
North Dakota ND
Ohio OH
Oklahoma OK
Oregon OR
Pennsylvania PA
Rhode Island RI
South Carolina SC
South Dakota SD
Tennessee TN
Texas TX
Utah UT
Vermont VT
Virginia VA
Washington WA
West Virginia WV
Wisconsin WI
Wyoming WY

There is no direct way for you to finish this job in Excel, but, you can list all of the state names and their relative abbreviations firstly, and then apply the Vlookup function to get any of the abbreviations.

First, please copy and paste the left state names and their abbreviations to your worksheet where you want to use.

Supposing, I paste them in cell A1:B51, and my data range in D1:E11, see screenshot:

Please enter or copy the following formula into cell E2:

=VLOOKUP(D2,$A$2:$B$51,2,0)

Then, drag the fill handle down to the cells that you want to apply this formula, and all the corresponding abbreviations have been returned at once, see screenshot:

Note: In the above formula, D2 is the state name which you want to return its relative abbreviation, A2:B51 is the data range you want to look for, the number 2 indicates the column number that your matched value is returned.


Convert abbreviations to full state names with INDEX And MATCH functions

If you want to get the full state names based on the abbreviations,the INDEX And MATCH functions can do you a favor.

Please copy or enter the below formula into a blank cell where you want to get the result:

=INDEX($A$2:$A$51,MATCH(D2,$B$2:$B$51,0))

Then, drag the fill handle down to the cells that you want to apply this formula, and all the corresponding abbreviations have been returned at once, see screenshot:

Note: In this formula, D2 is the criteria value that you want to return its relative information, A2:A51 is the list that contains the value you want to return, B2:B51 is the column that you are looking for.


Convert full state names to abbreviations or vice versa with an awesome feature

If you have Kutools for Excel, with its LOOKUP from Right to Left utility, you can return the abbreviations or full state names from the original state name and abbrev table quickly and easily.

Tips:To apply this LOOKUP from Right to Left feature, firstly, you should download the Kutools for Excel, and then apply the feature quickly and easily.

After installing Kutools for Excel, please do as this:

1. Click Kutools > Super Lookup > LOOKUP from Right to Left, see screenshot:

2. In the LOOKUP from Right to Left dialog box, please do the following operations:

  • Select the lookup value cells and output cells from the Lookup values and Output Range section;
  • Then, specify the corresponding items from the Data range section.

Note: If you want to replace the #N/A error value with another text value, you just need to check Replace #N/A error value with a specified value option, and then type the text you need.

3. Then, click OK button, the matching records have been returned based on the lookup values, see screenshot:

Tips: To get the abbreviations based on the full state names, you just need to change the Key column and Return column in the LOOKUP from Right to Left dialog box as you need.

Download and free trial Kutools for Excel Now !

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
This is lit, dude.
This comment was minimized by the moderator on the site
Brilliant.
This comment was minimized by the moderator on the site
I don't know about Excel, but this function works for Google Sheets. It checks each state name using the IF Function. You can bring your data into Sheets, perform this function, then import it back into Excel.

=IF(A1="Alabama","AL",IF(A1="Alaska","AK",IF(A1="Arizona","AZ",IF(A1="Arkansas","AR",IF(A1="California","CA",IF(A1="Colorado","CO",IF(A1="Connecticut","CT",IF(A1="Delaware","DE",IF(A1="Florida","FL",IF(A1="Georgia","GA",IF(A1="Hawaii","HI",IF(A1="Idaho","ID",IF(A1="Illinois","IL",IF(A1="Indiana","IN",IF(A1="Iowa","IA",IF(A1="Kansas","KS",IF(A1="Kentucky","KY",IF(A1="Louisiana","LA",IF(A1="Maine","ME",IF(A1="Maryland","MD",IF(A1="Ma
This comment was minimized by the moderator on the site
Hello,GenerousCoder,
Thanks for your formula, this formula works well in Excel too.But your formula is incomplete.

This comment was minimized by the moderator on the site
Is it possible to do this conversion if there is a city listed beforehand? For example, (Richmond, Virginia) into (Richmond, VA) ?
This comment was minimized by the moderator on the site
Thanks for the explanation, it was useful :)
This comment was minimized by the moderator on the site
How to convert full state names to abbreviations in Excel?
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations