Results 1 to 4 of 4

Thread: Power Query is ADDING in leading zeros when convert to text

  1. #1
    New Member
    Join Date
    Feb 2019
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Power Query is ADDING in leading zeros when convert to text

    I have a column with both numbers 1-99 and a few alphanumerics like U08.

    Import throws an error because "U" isn't a number.
    However, all my numbers now have leading zeros, 3 is now 003.

    Can I convert to text while maintaining the original numbers?
    Last edited by sbawnh; Apr 24th, 2019 at 08:47 AM.

  2. #2
    Board Regular Norie's Avatar
    Join Date
    Apr 2004
    Location
    Stirling, Scotland
    Posts
    75,154
    Post Thanks / Like
    Mentioned
    62 Post(s)
    Tagged
    6 Thread(s)

    Default Re: Power Query is ADDING in leading zeros when convert to text

    Where are you importing the data from?
    If posting code please use code tags.

  3. #3
    New Member
    Join Date
    Feb 2019
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Power Query is ADDING in leading zeros when convert to text

    Nevermind!

    How can I mark this thread as solved or delete it?
    Last edited by sbawnh; Apr 24th, 2019 at 09:00 AM.

  4. #4
    Board Regular sandy666's Avatar
    Join Date
    Oct 2015
    Posts
    2,853
    Post Thanks / Like
    Mentioned
    32 Post(s)
    Tagged
    1 Thread(s)

    Cool Re: Power Query is ADDING in leading zeros when convert to text

    import all as is whitout changing format
    remove "U"
    set column format to whole number

    edit:
    the best way is post a link to the shared excel file with representative example

    edit2:
    simply post word: Solved (and solution if any)
    that's all
    Last edited by sandy666; Apr 24th, 2019 at 09:06 AM.
    I know you know but I forgot my Crystal Ball and don't know what you know



    In the first post, show the type of machine (PC / Mac) and the Office version you are working on
    I don't use vba in any form!

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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