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 to make the most of a negotiation

Negotiators are made, not born. In this sponsored report, we cover strategies and tactics to help you head into 2017 ready to take on business deals, salary discussions and more.

VIDEO

Will the Affordable Care Act be repealed?

The results of the 2016 presidential election are likely to have a big impact on federal tax policy in the coming years. Eddie Adkins, CPA, a partner in the Washington National Tax Office at Grant Thornton, discusses what parts of the ACA might survive the repeal of most of the law.

QUIZ

News quiz: Scam email plagues tax professionals—again

Even as the IRS reported on success in reducing tax return identity theft in the 2016 season, the Service also warned tax professionals about yet another email phishing scam. See how much you know about recent news with this short quiz.