Link to home
Start Free TrialLog in
Avatar of Seamus2626
Seamus2626Flag for Ireland

asked on

Losing zeros opening a CSV file

Hi, i have a text file where the leading zero is being dropped when i open using excel.

Is there anyway to preserve the zero?

Thanks
Seamus
Avatar of n2fc
n2fc
Flag of United States of America image

You can preserve it by forcing it to be treated as alpha rather than numeric...

Do this by editing the text file with a quote (") prior to the field...

I presume this is probably a zip-code? Not that it matters!
Avatar of Seamus2626

ASKER

No, its just data in a notepad. But when it opens as a CSV it loses the leading zeros.

How can i introduce the (") to the field, where is this enetered?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of n2fc
n2fc
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks!