+ Reply to Thread
Results 1 to 4 of 4

If column C has only 4 numbers then enter a 0 at the beginning

  1. #1
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    If column C has only 4 numbers then enter a 0 at the beginning

    Hi,

    If column C has only 4 number in it then I would like to enter a 0 at the beginning and that the column is set as text format.

    Example before vba applied using excel 2003

    ColumnC
    4565
    12358
    456541234
    6657
    65881

    Example after vba applied

    ColumnC
    04565
    12358
    456541234
    06657
    65881

    Thanks for any help,

    David

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: If column C has only 4 numbers then enter a 0 at the beginning

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Re: If column C has only 4 numbers then enter a 0 at the beginning

    I found the one below which was posted by abousetta

    Please Login or Register  to view this content.

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: If column C has only 4 numbers then enter a 0 at the beginning

    or
    Please Login or Register  to view this content.

+ 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