Importing text into columns
You can import a text file and rearrange the text into columns at the same time.
You can adjust the widths of imported columns and specify a parsing format for imported text.
You can customize how delimited and fixed-width text files are parsed. You can also add a fixed-width parse break to imported text.
To import a text file into columns |
1.
|
|
Click Tools Data tools QuickColumns.
|
2.
|
|
Click the Browse button in the Text source box, and choose the text file.
|
3.
|
|
Click the Range picker in the Text source box and select the source cells.
|
4.
|
|
Click the Range picker in the Destination box and select a location for the imported data.
|
5.
|
|
From the Parse settings list box, choose one of the following:
|
•
|
Automatic — automatically determines how best to parse the imported text file
|
•
|
Delimited auto — automatically parses imported delimited text files
|
•
|
Fixed width auto — automatically parses imported fixed-width text files
|
If you want to view how data displays in the spreadsheet, click Format.
|
•
|
|
The QuickColumns Expert parses one column at a time.
|
•
|
|
The Destination box displays the active cell in the spreadsheet. Instead of specifying all the destination cells, you can specify one cell in which to begin inserting the parsed cells.
|
•
|
|
You can load previously saved parse settings by pressing the Browse button beside the Parse settings list box, and locating the .qpx file you want to load.
|
To adjust the column width for imported text |
1.
|
|
Click Tools Data tools QuickColumns.
|
2.
|
|
Click Format.
|
3.
|
|
In the column heading, point to the border until it changes to a double arrow.
|
4.
|
|
Drag the border until the column reaches the required width.
|
To specify a parsing format for imported text |
1.
|
|
Click Tools Data tools QuickColumns.
|
2.
|
|
Click Format.
|
3.
|
|
In the Format area, select a row or column.
|
4.
|
|
Choose a parsing action from the Action list box:
|
•
|
Skip — skips a row or column
|
•
|
Parse — parses a row or column
|
•
|
Label — copies a row as an unparsed label to the destination cells
|
To customize parse settings for delimited text files |
1.
|
|
Click Tools Data tools QuickColumns.
|
2.
|
|
Click the Browse button in the Text source box, and choose the text file.
|
3.
|
|
Click the Range picker in the Text source box and select the source cells.
|
4.
|
|
Click the Range picker in the Destination box and select a location for the imported data.
|
5.
|
|
Choose Delimited auto from the Parse settings list box.
|
6.
|
|
Click Settings.
|
7.
|
|
In the General area of the Parse settings dialog box, enable any of the following options:
|
•
|
Apply formatting to spreadsheet — automatically applies the existing spreadsheet formatting to the imported text
|
•
|
Set spreadsheet column widths — automatically applies the existing spreadsheet column width to the imported text
|
•
|
Set page length to — lets you label or skip certain rows without parsing
|
If you enable the Set page length to check box, choose an action from the Action list box, and type a value in the Lines box.
|
8.
|
|
Enable check boxes to establish delimiters (data breaks) in each of the following areas:
|
•
|
End of cell — establishes the selected character or characters as the start of a new cell within a row
|
•
|
End of row — establishes the selected character or characters as the start of a new row
|
•
|
End of sheet — establishes the selected character or characters as the start of a new spreadsheet
|
If you want to save your parse settings for future use, click Save and type a filename with a .qpx extension.
|
•
|
|
If you want data enclosed in a specific text qualifier to be parsed as a label, enable the Text qualifier check box in the Data type area, and type a text qualifier in the Text qualifier box.
|
To customize parse settings for fixed-width text files |
1.
|
|
Click Tools Data tools QuickColumns.
|
2.
|
|
Click the Browse button in the Text source box, and choose the text file.
|
3.
|
|
Click the Range picker in the Text source box, and select the source cells.
|
4.
|
|
Click the Range picker in the Destination box, and select a location for the imported data.
|
5.
|
| Choose Fixed width auto from the Parse settings list box. |
6.
|
|
Click Settings.
|
7.
|
|
In the Data type area, enable any of the following check boxes:
|
•
|
Skip first character — skips the first character in each line of text
|
•
|
Ignore nonconforming rows — skips lines in the text that the QuickColumns Expert cannot parse
|
To add a fixed-width parse break |
1.
|
|
Click Tools Data tools QuickColumns.
|
2.
|
|
Click Format.
|
3.
|
|
Click Set parse breaks .
|
4.
|
|
In the Set parse breaks dialog box, type a value in the Parse break position box.
|
5.
|
|
Click Set.
|