Saturday, April 23, 2011

Converting delimited values to columns and rows

Some times we want to convert delimited values to columns or rows. Particularly when the number of items in the list is huge it becomes a tedious job if done manually. Here is how Excel can help in this.

Sample:

STEP 1: Type a sample delimited string in Excel such as: Paris,London,Toronto

STEP 2: With the cell highlighted navigate to Data tab and in Data Tool section in Ribbon click on 'Text to Columns'. A pop-up window will be shown with some information of the string. Navigate through using Next button and make sure that right Delimiter is selected while doing this. After FINISH values will be shown in separate columns.








STEP 3: To convert the column values to row values, copy the values and while pasting select transpose option in 'Paste Options'. Value will be converted to Rows as shown below.

No comments:

Post a Comment