Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Excel 2002 drops a leading 0 in a number  (Read 3542 times)

0 Members and 1 Guest are viewing this topic.

potco2

  • Guest
Excel 2002 drops a leading 0 in a number
« on: May 22, 2006, 01:05:36 PM »
I'm trying to enter a number in an excel cell that begins with the number 0 (ie: 034567).  when i move to the next cell excel drops the 0 and just displays the rest of the numbers.  i need for the 0 to be displayed.

How do i get the 0 to display?

potco2

dl65

  • R.I.P.


  • Prodigy

    Thanked: 18
    Re: Excel 2002 drops a leading 0 in a number
    « Reply #1 on: May 22, 2006, 02:00:00 PM »
    potco2.....  Open Excel , click format/style ...... click modify..... then select text ....... then click ok ...... ( that shouild do it , I just tested it here .)

    dl65  ::)
    If you don't know the answer, it isn't a dumb question.

    potco2

    • Guest
    Re: Excel 2002 drops a leading 0 in a number
    « Reply #2 on: May 22, 2006, 03:23:10 PM »
    i tried this and it does allow the leading 0 to remain in place.  but if i have a column of numbers some with a leading 0 and some without and want to do a sort it does not sort correctly.  if it sorted correctly all the numbers with a leading 0 should be at the top of the column.

    do you have anyother ideas?

    soybean



      Genius
    • The first soybean ever to learn the computer.
    • Thanked: 469
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 10
    Re: Excel 2002 drops a leading 0 in a number
    « Reply #3 on: May 23, 2006, 09:29:44 AM »
    I wonder why you put this question in the Hardware section, not in Software.  Anyway, you must be doing something wrong.  I tested sorting of some numbers, formated as Text, and the numbers starting with 0 do sort together at the beginning of the list when sorting in ascending order.

    Do have the entire column, or at least the rows to be sorted, all formatted as text?  You need to do that to get this to work right.  When you start the sort, you should get a Sort Warning panel; in it, check the box for "Sort numbers and numbers stored as text separately".
    « Last Edit: May 23, 2006, 10:18:37 AM by soybean »

    potco2

    • Guest
    Re: Excel 2002 drops a leading 0 in a number
    « Reply #4 on: May 23, 2006, 09:55:55 AM »
    i thought i had put this under software, but evidently i didn't.  sorry this is my first time in here.

    you are right it does work as long as all the cells have the same format.  that was my problem i only had those that needed the leading 0 set to text format.  when i changed all cells to text it worked fine.

    thank you for you help.

    potco2

    dl65

    • R.I.P.


    • Prodigy

      Thanked: 18
      Re: Excel 2002 drops a leading 0 in a number
      « Reply #5 on: May 23, 2006, 03:35:32 PM »
      Topic closed and locked


      dl65  ::)
      « Last Edit: May 23, 2006, 03:40:06 PM by dl65 »
      If you don't know the answer, it isn't a dumb question.

      Rob Pomeroy



        Prodigy

      • Systems Architect
      • Thanked: 124
        • Me
      • Experience: Expert
      • OS: Other
      Re: Excel 2002 drops a leading 0 in a number
      « Reply #6 on: May 25, 2006, 02:38:07 PM »
      ...and opened again so I can mention this: to force any data to be interpreted as text, just put an apostrophe at the start.  E.g. '01234

      The apostrophe is not considered part of the contents of the cell, merely an indication of how it is to be interpreted.
      Only able to visit the forums sporadically, sorry.

      Geek & Dummy - honest news, reviews and howtos