18 - Importdata Excel
18 - Importdata Excel
18 - Importdata Excel
Data
Manipulation
& Analysis
Data Input:
Importing Data
Guideline
• Importing Data
2
Importing Data
3
Importing Data
4
Importing Data- Data Types
• Even though many users keep data in databases such as Microsoft
Access, it is common to receive text files with fields of data
separated by commas.
• Importing data into Excel can create a refreshable link that can be
used to update data whenever the original file changes.
• You also might need to format the data, move it, or convert it from
or into a table.
6
Importing Text Files
7
Importing Text Files
8
Importing Text Files
• A fixed width file contains data fields of equal length with
spaces between the fields. In the case of a fixed width file, a
special character need not separate the data fields.
9
Importing from a Text File Steps
• Tap or click the first cell on the worksheet to contain the
imported data. Example: A4.
• Tap or click the ‘Get Data From Text’ button on the DATA tab
to display the Import Text File dialog box.
• Tap or click the OK button to import the data from the text
file into the worksheet, beginning in the selected cell.
Importing from a Text File Steps
Importing from Database
• For example, a query can identify only those records that pass a
certain test, such as records containing numeric fields greater than
a specific amount or records containing text fields matching a
specific value.
• Before doing so, the source range for the data (A34:G38) should
be deleted because it no longer is needed. Also, the cells in the
range B25:E31 must be shifted one column to the right (if
necessary) to accommodate the part data.
• That is done by: Select the range B25:E31 and then click the Cut
button, Select cell C25 and then click the Paste button
Converting Text to Columns
• Select the cells to prepare for converting the text to columns,
A25:A31.
• Tap or click the ‘Text to Columns’ button on the DATA tab to display
the Convert Text to Columns Wizard – Step 1 of 3 dialog box
• Tap or click the Next button to accept Delimited as the file type and
to display the Convert Text to Columns Wizard – Step 2 of 3 dialog
box
• Tap or click to place a check mark next to the appropriated
delimiter (Comma) and uncheck the unnecessary delimiter (Tab)
and to display the data fields correctly in the Data preview area
• Tap or click the Finish button to close the dialog box and separate
the data
Converting Text to Columns
In-class Exercise
30