Working...
Importing and Exporting Data in Microsoft Excel
1. Importing Data into Microsoft Excel
Excel allows you to import data from various sources such as text files, databases, and the web.
Steps:
- Open Excel and go to the Data tab.
- Click Get Data → choose the source (e.g., From File, From Database, From Web).
- Browse and select your file or connection.
- Preview the data and click Load to import it into Excel.
2. Importing Data from Text Files
You can import .txt or .csv files containing delimited data (commas, tabs, etc.).
Steps:
- Go to Data → Get Data → From File → From Text/CSV.
- Choose the file and click Import.
- In the preview window, choose the correct delimiter (comma, tab, etc.).
- Click Load or Transform Data to edit before loading.
3. Importing Data from Microsoft Access
Use this option to connect Excel with an Access database and pull tables or queries.
Steps:
- Go to Data → Get Data → From Database → From Microsoft Access Database.
- Select the Access file (
.accdbor.mdb). - Pick the table or query you want to import.
- Click Load to bring the data into Excel.
4. (New Version) Import Data from Text Files into Excel
The latest Excel versions (Office 365, Excel 2021+) use Power Query for importing.
Steps:
- Go to Data → Get Data → From File → From Text/CSV.
- Power Query opens automatically — preview and format data.
- Choose Load to sheet or Load to Data Model for advanced analysis.
5. (New Version) Import Data from a Database into Excel
You can import directly from SQL Server, Oracle, or other supported databases.
Steps:
- Go to Data → Get Data → From Database.
- Select the database type (e.g., SQL Server).
- Enter the server name, database, and credentials.
- Select the tables or views to import, then click Load.
6. Microsoft Excel Legacy Import Options for New Excel Versions
Newer Excel versions still support legacy wizards for backward compatibility.
Steps:
- Go to Data → Get Data → Legacy Wizards → From Text (Legacy).
- Choose your file and follow the step-by-step import wizard.
- Use this when older formatting or delimiters don’t work properly in Power Query.
7. Exporting Data to a Text File
You can export your Excel worksheet data as a .txt or .csv file for use in other applications.
Steps:
- Go to File → Save As.
- Choose a location and select Save as type → CSV (Comma delimited) or Text (Tab delimited).
- Click Save.
- Excel will warn that only the active sheet is saved — click OK to confirm.
No comments:
Post a Comment