Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-01-2016, 05:04 AM
treadhead194 treadhead194 is offline Numbers are driving me crazy Windows 7 64bit Numbers are driving me crazy Office 2013
Novice
Numbers are driving me crazy
 
Join Date: Jul 2014
Posts: 20
treadhead194 is on a distinguished road
Default Numbers are driving me crazy

I just don't understand why, in some cases where the cell will be formatted as "General", Excel will drop the first number should it be "0", and in other cases where it won't drop the "0" even though the cell is formatted as "General".


Case in point. I entered the number "00029970" and the cell was formatted as "General" and it dropped the first 3 zeros. I entered another number "0001A67C" and no zeros were dropped and the cell was formatted as "General".
Does Excel look at the entire entry and because there is a letter after the "1", it treats the entry differently? The only way I have found to keep a leading "0" is to format the cell as "Text". The entries are actually serial numbers, and I have a lot of them, and excel is the best place to keep them because of the ability to find a specific number.
Reply With Quote
  #2  
Old 02-01-2016, 09:15 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Numbers are driving me crazy Windows 7 64bit Numbers are driving me crazy Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Spot on ! as soon as there is anything else than numbers in a string, XL treats it as text. ( without operator intervention text is always left aligned in the cell, numbers are right-aligned)

To keep leading zeros you can format the cell(s) as text (before entering data) or precede the string with an apostrophe (')
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Numbers are driving me crazy Fitting text to shape - this is driving me crazy StratusDancer PowerPoint 2 10-31-2015 10:44 AM
Numbers are driving me crazy Word Driving Me Crazy - page numbering mrush Word 4 10-16-2015 10:13 PM
Audio problem thats driving me crazy pcbguy PowerPoint 10 04-26-2012 08:56 AM
A number of issues driving me crazy seanterry125 PowerPoint 0 01-17-2011 04:46 PM
Outlook Journal is Driving me Crazy lujreyes Outlook 0 11-24-2010 05:21 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:00 AM.


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