Excel can handle many complex calculations and formulas to assist you with datasets. There are times when you need to use Excel to open files that are not native to the Excel application.
This tutorial will walk you through the steps necessary to open your .dbf file in Excel.
Table of Contents
Open a DBF File in Excel Using the Open File Command
- Open Excel and navigate to the .dbf file. Excel will only show native files, so you must change the file type in the dialog box from “Excel Files” to dBase files.
- Click the .dbf file in the dialog box and tap the “Open” button.
- The file opens in Excel and you can edit it to fit your needs.
Open a DBF File in Excel Using the Get Data Command
- Open Excel and tap “Data” in the top menu.
- Click the down arrow next to Get Data to expand the options, select “From Other Sources…” and click “From Microsoft Query.”
- Tap the “Options…” button in the “Choose Data Source” dialog box.
- Position the mouse pointer directly after .oqy in the “File Name:” section and type: “ ;*.dbf.” Next, in the “Folders:” section, navigate to the drive where the DBF file exists and click the “OK” button.
- Click the “OK” button in the “Data Source Options” dialog box.
- Click the “OK” button in the “Choose Data Source” dialog box, and the “Create New Data Source” dialog box appears. Input a filename in the “What name do you want to give your data source?” box, and then choose “Microsoft Access dBase Driver” from the drop-down list under “Select a driver for the type of database you want to access:”
- Click the “Connect…” button and the ODBC dBase Setup box appears. Leave the version as dBase 5.0 and tap the “OK” button.
- The file name path to the DBF file appears next to the “Connect…” button. Click the “OK” button.
- You will see the filename of your DBF file highlighted in the “Databases” tab. Click the “OK” button in the “Choose Data Source” dialog box.
- The tables and columns appear on the left-hand side of the “Choose Columns” dialog box. Highlight the tables and columns to include in your query, and then click the chevron arrow to move them into the “Columns in your query” portion of the dialog box. Click the “Next” button.
- The query wizard allows you to filter the data if you choose. For this tutorial, we will not be filtering data. Tap the “Next” button on the wizard.
- The “Sort Order” dialog box appears. You can select how to sort the data from your table. Once you have made sorting selections, tap the “Next” button.
- Make sure that the “Return data to Excel” radial button is selected, and tap the “Finish” button to complete the query.
- Choose how to import the data into Excel in the “Import Data” dialog box. For this tutorial, we will import the data as a simple table. Click “OK” to finish the import.
- The data from the DBF file is displayed in the worksheet.
Conclusion
Now you have learned two different methods for opening a .dbf file so that you can manipulate the data in Excel. Please feel free to take a look at other tutorials on our website.