LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I stop Excel from dropping leading zeros?

I am using Excel 2003. Excel is dropping the leading zeros from 12 digit UPC
numbers I paste into a spreadsheet. I know how to restore the leading zeros
using the special cell formatting option "000000000000" to make the number 12
digits, this pads the beginning of the number with leading zero's to fill it
out to 12 digits. However, I also need to drop the last digit (the check
digit) from the UPC numbers that I am pasting. When I use a formula (in this
case =LEFT(F2,LEN(F2)-1); I apply this formula to the entire column to the
right of the column with the UPC numbers [column F] and it drops the last
digit) to drop the last digit from the UPC, the numbers that are generated
unfortunately seem to have dropped the lead zeros again. And once I have
formatted this column with the formula to generate the UPC minus the check
digit, I don't seem to be able to apply a custom number format to the cells
to make them 11 digits, thus restoring the lost leading zeros. Is there any
way to make Excel quit dropping leading zeros? Or is there any way to both
have a formula applied to a column AND a custom number format? I am totally
stuck here.
Thanks for any help
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop automatically removing leading zeros? Jessica P[_2_] Excel Discussion (Misc queries) 2 November 17th 08 09:47 PM
How do you stop excel removing the leading zeros in a cell? ck2007 Excel Discussion (Misc queries) 2 May 25th 07 06:16 PM
Stop Excel from stripping out leading zeros when saving as CSV MattM Excel Discussion (Misc queries) 4 June 26th 06 11:35 AM
Stop Excel from dropping the 0 in the beginning of a number Mo Setting up and Configuration of Excel 2 February 4th 06 07:12 PM
Excel file saved as csv - dropping zeros Kathy Excel Discussion (Misc queries) 3 February 18th 05 07:15 PM


All times are GMT +1. The time now is 02:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"