A Puzzling Parse

BY J. CARLTON COLLINS

Q: I have noticed that when I use Excel’s Text to Columns tool to parse text data, sometimes it automatically recognizes the commas, spaces, quotes or other separators, and other times it does not. How do I make the Text to Columns tool work correctly every time?

 

A: Excel’s Text to Columns tool does not automatically recognize delimiters (commas, spaces or quotes), although it may sometimes appear to. Like an elephant, Excel’s Text to Columns simply has a good memory. Each time you use Text to Columns, it remembers your parsing criteria and sets it as the default for future parse jobs, until Excel is closed. It is likely that you used Text to Columns once, changing the delimiter criteria as necessary, then opened a second file containing the same type of delimited data. In this second case, it may have appeared that Excel automatically recognized the embedded delimiter, but it was only following the lead from the first parsing job. An example of the Convert Text to Columns Wizard dialog box is shown below.

 

Notes: There is no option for changing the default Text to Columns delimiter in Excel, but you can achieve the same effect by setting the desired delimiters in a workbook and saving it as a template or as the default workbook. You could also create macros designed to parse data according to the delimiting criteria you frequently encounter.

 

More from the JofA:

 

 Find us on Facebook  |   Follow us on Twitter  |   View JofA videos

SPONSORED REPORT

How the election may affect taxation of business income

This report summarizes recent proposals to reform the U.S. business income tax system and considers the path to enactment of any such legislation.

VIDEO

How to Excel pivot a general ledger

The general ledger is a vast historical data archive of your company's financial activities, including revenue, expenses, adjustments, and account balances. J. Carlton Collins, CPA, shows how to prepare data for, and mine data with, PivotTables.

QUIZ

Did you follow 2016’s biggest accounting news?

CPAs will remember 2016 as a year of new standards and new faces. How well did you follow the biggest accounting events? The 7 questions in this quiz will help you find out