Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My web application exports data in tab delimited format. One of the column contains long strings of numbers that are IDs. Some of these number strings contain leading zeros. Is there anyway to get Excel 2003 to treat the number strings as "Text", instead of treating them as number and trim the leading zeros?

share|improve this question

migrated from stackoverflow.com Jul 7 '11 at 6:16

This question came from our site for professional and enthusiast programmers.

add comment

3 Answers

Add the apostrophe' character before the string, and it will treat it as text, and not display the apostrophe.

share|improve this answer
add comment

Put the data in " in the tab delimited file. Excel when importing will treat it as a string data type

simon[tab]"01792272"[tab]other data

share|improve this answer
add comment

Try adding a space character in front of the number.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.