Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default number too long

i have range a2:a100 that i scan items into, the length of the barcode number
ranges from 10 - 20 digits. when i scan an item that is 20 digits long it
converts the last 5 digits to zeros. i tried formatting the cells to 20 zeros
but then if i scanned something with 10 digits it would add another 10 zeros.
i was thinking of a conditional formatting but i cant seem to get it. please
help
thank you in advance


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default number too long

You need to format the cells as Text

Excel only has 15 digits of precision, so if you try to store a number with
more than 15 digits, the digits above 15 will be converted to 0.

--
Regards,
Tom Ogilvy


"choice" wrote in message
...
i have range a2:a100 that i scan items into, the length of the barcode

number
ranges from 10 - 20 digits. when i scan an item that is 20 digits long it
converts the last 5 digits to zeros. i tried formatting the cells to 20

zeros
but then if i scanned something with 10 digits it would add another 10

zeros.
i was thinking of a conditional formatting but i cant seem to get it.

please
help
thank you in advance




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default number too long

You're reaching the limit of how big a number can be stored.

Try to format the cell as Text instead.

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"choice" wrote in message
...
i have range a2:a100 that i scan items into, the length of the barcode
number
ranges from 10 - 20 digits. when i scan an item that is 20 digits long it
converts the last 5 digits to zeros. i tried formatting the cells to 20
zeros
but then if i scanned something with 10 digits it would add another 10
zeros.
i was thinking of a conditional formatting but i cant seem to get it.
please
help
thank you in advance




Reply
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
http://CannotDeleteFile.net - Cannot Delete File? Try Long Path ToolFilename is too long? Computer Complaining Your Filename Is Too Long? TheLong Path Tool Can Help While most people can go about their businessblissfully unaware of the Windo Max Loger Excel Discussion (Misc queries) 0 June 14th 11 04:30 PM
when I type a long number it shows up as smaller number and + SandyC Excel Discussion (Misc queries) 5 March 17th 10 07:47 PM
formula to add a number to a long string ** MMangen Excel Worksheet Functions 5 December 1st 09 09:01 AM
long number ends in 000 justanotherdayatwork Excel Discussion (Misc queries) 2 December 22nd 08 09:29 AM
display long number as text Daisy[_4_] Excel Programming 2 October 5th 04 08:49 PM


All times are GMT +1. The time now is 09:25 AM.

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

About Us

"It's about Microsoft Excel"