Results 1 to 4 of 4
  1. #1
    2 Star Lounger
    Join Date
    Jun 2001
    Location
    Quakers Hill, NSW, Australia
    Posts
    153
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Number formatting (Excel XP)

    Hi,
    I am attempting to format a number that may have a leading zero but it doesn't show.
    If I enter 062171 I would like to have it format 062-171.
    I have tried ###-### which works fine if the 1st number isn't a zero.
    Can this be acheived?

    Thanks
    Neville

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Number formatting (Excel XP)

    Do you always have 6 digits? If so, 000-000 should work.

  3. #3
    2 Star Lounger
    Join Date
    Jun 2001
    Location
    Quakers Hill, NSW, Australia
    Posts
    153
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Number formatting (Excel XP)

    Yes it will always be 6 digits (Aussie Banks BSB no) and it works great.

    Thanks for you help Hans.

    Neville

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Number formatting (Excel XP)

    From the online help for custom number formats:

    # displays only significant digits and does not display insignificant zeros.
    0 (zero) displays insignificant zeros if a number has fewer digits than there are zeros in the format.

Posting Permissions

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