Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-30-2020, 04:55 AM
catflap's Avatar
catflap catflap is offline Leading zero in field Windows 7 64bit Leading zero in field Office 2013
Advanced Beginner
Leading zero in field
 
Join Date: Aug 2015
Location: UK
Posts: 77
catflap is on a distinguished road
Default Leading zero in field

Hi




Importing a csv file into Excel where one of the fields has a leading zero is an old problem. Excel treats the field as a number and removes the zero.


There are several ways to fix this once you are in Excel - I favour putting in an apostrophe to force text instead of number format, for example - however, I'm trying to come up with a different solution.


I have a colleague who works with some mail merge software which can only accept csv files and works in the same way as Excel, ie dropping the leading zero. I don't have access to their software, but I figured if I could get Excel to accept it, then their software would work as well.


What I'm wondering is if there is any character I could put in at the start of the field which would force Excel to treat it as text, but which would not be visible when printed.


It could appear as a space. I've tried adding ASCII 255 for example, which is a non-breaking space, thinking if it wasn't the usual ASCII 32 space it might encourage Excel to treat it as text, but no luck.


Does anyone have any ideas on this one?


Thanks for reading!
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
alt + xxxx does not work in Onenote. The leading two bytes are ignored. garyp OneNote 0 07-11-2018 07:10 AM
Leading zero in field How to remove trailing & leading spaces in a cell? LearnerExcel Excel Programming 8 02-04-2018 08:22 PM
Get rid of leading spaces before paragraphs fig000 Word 11 03-14-2016 01:59 PM
Numbering with fixed length having leading 0 pmahesha Word 2 04-15-2015 11:48 PM
Change the leading of a character style??? Char t Word 1 11-05-2011 01:18 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:40 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft