+ Reply to Thread
Results 1 to 4 of 4

formatting question

  1. #1
    Helen
    Guest

    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. #2
    Dave Peterson
    Guest

    Re: 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. #3
    Helen
    Guest

    Re: formatting question

    Brilliant!

    Works great.

    Thanks,

    Helen


    "Dave Peterson" <[email protected]> wrote in message
    news:[email protected]...
    > 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. #4

    Re: formatting question

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


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1