Sign up ×
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 Jul 7 '11 at 6:16

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

3 Answers 3

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

share|improve this answer

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

Try adding a space character in front of the number.

share|improve this answer

Your Answer


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.