+ Reply to Thread
Results 1 to 2 of 2

[SOLVED] make 1234 -> 012034

  1. #1
    Daniel M
    Guest

    [SOLVED] make 1234 -> 012034

    I have a cell with a 4 digit number that i need to convert to 6 digit with
    zeros. Is there a way i can do this in a macro?

    I have 1234
    I need 012034

    thanks.



  2. #2
    PY & Associates
    Guest

    RE: make 1234 -> 012034

    How about
    ="0"&LEFT(A1,2)&"0"&RIGHT(A1,2)

    In macro, substitute A1 with range

    "Daniel M" wrote:

    > I have a cell with a 4 digit number that i need to convert to 6 digit with
    > zeros. Is there a way i can do this in a macro?
    >
    > I have 1234
    > I need 012034
    >
    > thanks.
    >
    >
    >


+ 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