Column Matching for state abbreviation.

Warrior Golf

New Member
Joined
Jan 2, 2013
Messages
33
Hello. I have column H filled with state names in full. I would like to quickly change all state names into a 2 letter abbreviation. I'm assuming I can do a "VLOOKUP" formula? I do have a separate spreadsheet which has state names in column A and state abbreviation in column B.

This is an older "VLOOKUP" formula that I've tried to modify but have been unsuccessful: =VLOOKUP(LEFT(H2,3)+0,'SheetWithCodes'!$A$1:$B$430,2,FALSE)

Thanks
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Do you want to permanently replace the Full names on your first sheet, the one with Col H, with the abbreviations?

If so, give this some thought (I've used Sheet1 and Sheet 2 for my example):
Insert a column After Col H on Sheet1 and insert the formula:=VLOOKUP(H1,Sheet2!A$1:B$430,2,FALSE) in cell I1.
Drag the formula down the length of your states. When complete copy And then use PASTE Values to overwrite the formulae. Then delete Column H. Your new Col H will now be abbreviations.

Does that satisfy?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top