#1   Report Post  
Posted to microsoft.public.excel.misc
Helen
 
Posts: n/a
Default formatting question

Hello,

I have received a workbook from a vendor that lists UCC codes in the
following way:

(00) 0 0660142 02770000 1

I need to store it without the spaces and the brackets; 0000660142027700001

So I use the Find and Replace feature and take the brackets out. That works.
But when I take out the spaces I get the following result in the cell:

6.60142E+15

In the function bar the number now is: 6601420277000000

What am I doing wrong? I have tried formatting the field as Text first, but
with the same result.

Thanks,

Helen


  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default formatting question

Excel only keeps track of 15 significant digits.

Maybe you can use a helper cell and use something like:

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1," ",""),")",""),"(","")

Helen wrote:

Hello,

I have received a workbook from a vendor that lists UCC codes in the
following way:

(00) 0 0660142 02770000 1

I need to store it without the spaces and the brackets; 0000660142027700001

So I use the Find and Replace feature and take the brackets out. That works.
But when I take out the spaces I get the following result in the cell:

6.60142E+15

In the function bar the number now is: 6601420277000000

What am I doing wrong? I have tried formatting the field as Text first, but
with the same result.

Thanks,

Helen


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Helen
 
Posts: n/a
Default formatting question

Brilliant!

Works great.

Thanks,

Helen


"Dave Peterson" wrote in message
...
Excel only keeps track of 15 significant digits.

Maybe you can use a helper cell and use something like:

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1," ",""),")",""),"(","")

Helen wrote:

Hello,

I have received a workbook from a vendor that lists UCC codes in the
following way:

(00) 0 0660142 02770000 1

I need to store it without the spaces and the brackets;
0000660142027700001

So I use the Find and Replace feature and take the brackets out. That
works.
But when I take out the spaces I get the following result in the cell:

6.60142E+15

In the function bar the number now is: 6601420277000000

What am I doing wrong? I have tried formatting the field as Text first,
but
with the same result.

Thanks,

Helen


--

Dave Peterson



  #4   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default formatting question

Put a ' in front of the number making it text. Or put a space in
front of the number. :ed

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
Hiding a worksheet while formatting it Bill Youngman Excel Worksheet Functions 2 May 11th 05 01:38 PM
conditional formatting question Deb Excel Discussion (Misc queries) 0 March 23rd 05 02:07 AM
Pivot Tables lose some formatting when Updated Jugglertwo Excel Discussion (Misc queries) 1 March 23rd 05 12:48 AM
Formatting Question Kent Excel Worksheet Functions 1 March 1st 05 06:26 PM
Area Chart Formatting Question Avrilon Charts and Charting in Excel 3 December 2nd 04 09:14 PM


All times are GMT +1. The time now is 08:11 PM.

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"