Thursday, December 18, 2008

Excel - Split Data Into Columns

Replacing the hyphens for a column is very easy:

Example: "animals - house of the rising sun" (on A1)

Highlight all of your cells with the data.

  1. Select the topmost cell in the column, e.g. A1
  2. Hold CTRL+SHIFT and then press the down arrow.
  3. OK, once we've done that, go to "Data" menu and select "Text To Columns".
  4. On the Text To Columns window, select "Delimited" and then hit "Next".
  5. In the following window, choose "other" for type of delimiter and use the minus/hyphen sign -
Hit Finish.

Now you will have two columns, from your example, the first column will contain data like "Animals" and the other column will contain the data " House of The Rising Sun". (note the SPACE in front of "House")

To get rid of that SPACE we're going to use the TRIM function.

In cell C1 (or the column to the right of the song titles) type in this formula.

=TRIM(B1)


Nir



Credit: ozgrid.com

No comments:

Post a Comment