Converting Text Columns
Converting Text Columns
In the world of spreadsheets and data analysis, a basic rule of thumb is that if you are not going
to do a calculation on the values in a column or if the column has dates, then that column
needs to be formatted as “text”, even if that text is a number, such as a zip code or an NIGP
code. Some of the numbers for zip codes or NIGP codes start with a zero. If Excel thinks that
the column is a number, then it will remove leading zeroes. For example, if your NIGP code is
00514, and the column is formatted as a “number”, then Excel will display 514, not 00514. In
the NIGP Summary Tool, the formulas in the spreadsheet will not work properly if leading
zeroes are removed.
When downloading purchase order data from PeopleSoft, some columns have numbers (e.g.
supplier ID, NIGP code) and download correctly as text. But, if something happens and they
don’t, you can “convert” them. Simply formatting the column as text will not work once the
data has been imported into Excel as a number field. You must actually “convert” the numbers
to text. Of course, if any leading zeroes have been removed, then you will need to manually fix
those by typing in the correct value with the leading zeroes.
Depending on the data you have, you can split a single column of text into two or more
columns based on either fixed-width or delimiter.
When you split a column based on fixed-width, you tell Excel to put the first X number of
spaces in one column, the next X number of spaces into the next column, and so forth,
until you have told Excel how many new columns you want to make out of the original
column.
When you split a column based on a delimiter, you designate a character that Excel
recognizes as separating what is in one column from what is in the next column. The
most common delimiter is the comma (“,”) but you can also have tab-delimited, space-
delimited, semi-colon delimited, etc.
When you need to convert a column of numbers to a column of text, you can use either of
these methods. In the instructions below, you will convert a column of NIGP codes from
numbers to text using the fixed-width method because it is easier when you are converting one
column to one column.
Click Next since you are not going to split the column into
more than one column.
2|Page
Converting Text to Columns
3|Page
Converting Text to Columns
4|Page