![babylon 9 digit zip code babylon 9 digit zip code](http://3.bp.blogspot.com/-81wGEOua-4A/Vl0Ral9AWFI/AAAAAAAAOVw/NYOWJbnY5Ko/s1600/babylon%2Bcode.png)
![babylon 9 digit zip code babylon 9 digit zip code](http://media.sharewareconnection.com/images/large/5-digit-zip-code-data-premium-38127.gif)
If you need to truncate ZIP Codes quite often, you may be more interested in a macro-based approach. You can delete the column containing the four digits, if desired.
#Babylon 9 digit zip code code
(You want your ZIP Codes to be formatted as text so that you don't lose any leading zeros.)Īt this point you have the first five digits of the ZIP Code in the original column and the last four digits (if any) in the previously empty column to the right. In the Column Data Format area, select Text.Select the Other check box, place a single dash in the box just to the right of Other, then click on Next.Make sure the Delimited option is selected, then click on Next.The first step of the Convert Text to Columns Wizard. Excel displays the first step of the Convert Text to Columns Wizard. Click the Text to Columns tool, in the Data Tools group.Select all the cells that contain your ZIP Codes.If you have an empty column to the right of your ZIP Codes, you can also use Excel's Text to Columns feature: Column H has now been transformed from formulas into the formula results. Make sure the Values radio button is selected.Excel displays the Paste Special dialog box. Click the down-arrow under the Paste tool and choose Paste Special from the resulting choices.Is there a way to look through all the records and any time zip codes is not a 5 digit number, change the value to missing Then I can treat it as a number. So in the original program, I read it as character. Excel copies the entire column to the Clipboard. Also some records just have 9 or some other single digit number. Copy this formula into all the appropriate cells of column H.Assuming the ZIP Codes are in column G and you added a new column H, you can enter the following in cell H3:.Insert a new column, just to the right of the existing ZIP Code column.This is a rather easy task to accomplish, since all you need to do is strip everything after the fifth digit in the ZIP Code. (Actually, the five-digit ZIP Code is a subset of the nine-digit ZIP Code.) If you are in an Excel worksheet that contains address information, you may want to convert nine-digit ZIP Codes to their five-digit equivalent. In the United States, ZIP Codes come in two formats: five-digit and nine-digit.