Computing.Net > Forums > Office Software > Zeros in Text-to-Columns in Excel

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Zeros in Text-to-Columns in Excel

Reply to Message Icon

Name: StephanieSDN
Date: January 3, 2007 at 21:59:09 Pacific
OS: Windows XP
CPU/Ram: Intel Celeron M, 1GB
Product: Dell Inspiron 1300
Comment:

I recently did a survey for a grad school project, and my results were rolled up in Excel. For questions where more than 1 answer could be given, the cell value is in a "01010" pattern, where 1=checked, and 0=not checked. I formatted those columns using the "Custom" type in Cell Formatting. Then, when do a text-to-columns split, the zeros in front of 1s do not register! Does anyone know how to preserve the zeros in a text-to-column? The data set is simply too large to make individual cell adjustments. PLEASE HELP!!



Sponsored Link
Ads by Google

Response Number 1
Name: wizard-fred
Date: January 4, 2007 at 03:35:51 Pacific
Reply:

Split The "01010" into individual text columns.


0

Response Number 2
Name: Michael J (by mjdamato)
Date: January 4, 2007 at 10:19:05 Pacific
Reply:

Well, that's what her problem is about. I'm assuming you have a formula to create that number, just put the formula for each answer in different columns.

Or, change your formula to use "YNYNYN" instead. Many ways to attack this issue.

Michael J


0

Response Number 3
Name: StephanieSDN
Date: January 4, 2007 at 16:08:16 Pacific
Reply:

Here is the origin of my datafile: the survey was administered online, using Snap Survey Software. Snap automatically generates the results into an Excel file. Therefore, I have no formulas, just the numbers.

I appreciate the responses so far....


0

Response Number 4
Name: Nigel Spike
Date: January 5, 2007 at 07:12:18 Pacific
Reply:

Could this help ?
=IF(cell<10000;"0";"1")

Nigel


I support Bigger feet for rabbits


0

Response Number 5
Name: wizard-fred
Date: January 6, 2007 at 01:08:37 Pacific
Reply:

If the data is returned as a text string of fixed width, like the example '01010', add columns in the spreadsheet and use a formula like '=value(mid(cell, position, 1))' to separate the value for each position. You then could use the result to 'weight' the answer.

NOTE: An apparent paradox, one's not in the first position evaluate to -1 instead of the expected 1. I use Excel 2000 under Win98SE.

If you have such a large data set probably the results should be exported to some database and the results analyzed by a statistical application. The data field in question could be parse by either the database or the analyzing package.


0

Related Posts

See More



Response Number 6
Name: jon_k
Date: January 8, 2007 at 07:16:54 Pacific
Reply:

Could you kick the file out to a .csv instead?

When you import a csv file in Excel, it will give you an option to format that row as text, and as a result leading 0s will be preserved. Alternatively, use:

=text(A2,"00000")

Problem solved?



0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Zeros in Text-to-Columns in Excel

Labels in Excel www.computing.net/answers/office/labels-in-excel/2876.html

separating numbers in excel? www.computing.net/answers/office/separating-numbers-in-excel/8173.html

Redistributing cells in Excel www.computing.net/answers/office/redistributing-cells-in-excel/7104.html