Microsoft Excel: How to Automate Text File Links

However, many users don't realize there's an alternate way to access text files that can minimize steps, and perhaps even automate integrating text file-based data into your spreadsheets. To do so:
  • Excel 2007 and later: Choose From Text in the Get External Data section of the Data tab.
  • Excel 2003 and earlier: Choose Data, Import External Data, and then Import Data.
At this point, in any version of Excel, you'll be presented with a variation of the Open dialog box:
  • Excel 2007 and later: The dialog box is labeled Import Text Files.
  • In Excel 2003 and earlier: The dialog box is labeled Select Data Source.
Regardless of your Excel version, browse to your text file and then click the Import button. A new dialog box labeled Text Import Wizard will appear. This wizard is identical to the Text to Columns Wizard, but I'll walk through the steps for anyone unfamiliar with either:
 
On the first screen of the wizard, you signify whether your text file is delimited for fixed width:
  • Delimited: Signifies there's a separator between each field, such as a tab, comma, space, semi-colon, or perhaps the | character, which is referred to as the pipe symbol.
  • Fixed width: Signifies that each field is allocated a specific number of characters, meaning the data lines up evenly in columns.
As shown in Figure 4, a data preview window shows you the first few rows of the text file as an aid in determining the file type. Once you choose delimited or fixed width, click Next to proceed to the next step in the wizard.
 
Figure 4: Excel provides a data preview window where you can view the first few rows of your text file.

You may like these other stories...

Event Date: August 28, 2014, 2 pm ET Excel spreadsheets are often akin to the American Wild West, where users can input anything they want into any worksheet cell. Excel's Data Validation feature allows you to...
When you’re running an accounting office, it's easy to become inundated with paper, forms, and email attachments, especially when tax season rolls around. To prevent your office from becoming completely overwhelmed...
It's not a reality—yet—but accounting software is poised to eliminate accountants. We are at a tipping point for many similar professions: online education replacing professors, legal software replacing...

Upcoming CPE Webinars

Aug 5
This webcast will focus on accounting and disclosure policies for various types of consolidations and business combinations.
Aug 20
In this session we'll review best practices for how to generate interest in your firm’s services.
Aug 21
Meet budgets and client expectations using project management skills geared toward the unique challenges faced by CPAs. Kristen Rampe will share how knowing the keys to structuring and executing a successful project can make the difference between success and repeated failures.
Aug 28
Excel spreadsheets are often akin to the American Wild West, where users can input anything they want into any worksheet cell. Excel's Data Validation feature allows you to restrict user inputs to selected choices, but there are many nuances to the feature that often trip users up.