Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Fixed-Width Settings when Converting Text to Columns.
Written by Allen Wyatt (last updated June 15, 2020)
This tip applies to Excel 97, 2000, 2002, and 2003
Milda needs to use Excel's Convert Text to Columns Wizard quite often for one of her work projects. She needs to use the fixed-width parsing in the tool, and when she runs the wizard Excel looks at the source data and suggests places where the data should be "broken." Milda finds this annoying, as Excel normally guesses wrong. She wonders if there is a way to clear all of the suggested break lines at once so she can enter the break lines manually where she wants them.
There is no way to stop Excel from guessing when trying to parse fixed-width data. There are a few things you can try, however, that may help. For instance, some people have reported better results in Excel's guesses if you format the source column with a Courier font before doing the conversion. (Courier is a monospace font and may help Excel better "see" the natural breaking points for the data.)
Another possibility is to trick Excel into thinking that it is best not to guess about breaks. Before you run the Convert Text to Columns Wizard, insert a blank row at the top of your data. In the row, put a long string of characters with no spaces. For instance, you might put in 200 X characters, with no spaces or punctuation. When you run the wizard, Excel won't be able to figure out where the breaks are in this data, so it doesn't venture any guesses. After the wizard is complete, you can then simply delete the row.
Finally, you can develop a Visual Basic routine to handle the data deconstruction for you. This is a particularly good solution if you find that your project involves working with identically formatted text all the time. You might start by using the macro recorder to record a session with the Text to Columns Wizard and see if what is recorded is a good starting place for future conversions.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3253) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Fixed-Width Settings when Converting Text to Columns.
Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2015-12-12 18:00:17
Start with the text to be Converted from Text to Columns in a ".txt" document. Open excel. Then from within Excel "open" the ".txt" document. A "Text Import Wizard" will open a display of the text data and begin the process of the user selecting the columns to be imported or omitted. I use Excel 2002 but feel that newer versions will still have this feature.
2015-12-12 06:53:11
Robert
How about insert a blank row at the top of your data. In the row, put a long string of characters with a delimiter where you want the line to be broken at.
Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments