+ Reply to Thread
Results 1 to 5 of 5

Adding zeroes to the values in certain format

  1. #1
    Registered User
    Join Date
    01-23-2010
    Location
    Slovenia
    MS-Off Ver
    Excel 2002
    Posts
    7

    Adding zeroes to the values in certain format

    Hello,

    I have an Excel spreadsheet which has a column with values like that:

    1002.1.39
    1004.2.112
    1007.1.7
    1008.4.195

    I need to reformat it to look like that - the value after the second dot has to be a 5-space number, filled with zeroes as needed:

    1002.1.00039
    1004.2.00112
    1007.1.00007
    1008.4.00195

    I have MS Excel 2016, how can I achieve this? Thank you!

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Adding zeroes to the values in certain format

    If the second dot is always the 7th character as shown by you you can use this formula-
    Please Login or Register  to view this content.
    However if position of second dot is unspecified use this formula-
    Please Login or Register  to view this content.
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    Registered User
    Join Date
    01-23-2010
    Location
    Slovenia
    MS-Off Ver
    Excel 2002
    Posts
    7

    Re: Adding zeroes to the values in certain format

    It's the first case, the second dot is always the 7th character but I can't get the formula to work.

    I am terribe at Excel. I need this to be done from the column A from row A2 to A152, how do I do it?

    Thank you!

  4. #4
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Adding zeroes to the values in certain format

    Okay no problems.
    Check attached.excelforum-101.xlsx

    Copy the formula to the end of your range in column B.
    Last edited by sourabhg98; 04-09-2016 at 04:04 AM.

  5. #5
    Registered User
    Join Date
    01-23-2010
    Location
    Slovenia
    MS-Off Ver
    Excel 2002
    Posts
    7

    Re: Adding zeroes to the values in certain format

    Thank you very very much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 02-21-2014, 12:11 PM
  2. [SOLVED] Adding a specified amount of zeroes in front of a number
    By ShareTheGlobe in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-31-2014, 06:20 AM
  3. Format-leading zeroes and formula
    By prasjohn in forum Excel General
    Replies: 1
    Last Post: 02-13-2010, 10:43 AM
  4. [SOLVED] Adding Trailing Zeroes
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-29-2009, 12:08 PM
  5. Adding zeroes without formatting
    By jarleram in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-17-2009, 04:24 AM
  6. [SOLVED] how to keep leading zeroes when saving in xls in csv format
    By Joe in forum Excel General
    Replies: 2
    Last Post: 10-05-2005, 02:05 PM
  7. [SOLVED] format:Adding large minute and second values
    By Fred Smith in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 10:05 PM
  8. Replies: 2
    Last Post: 07-12-2005, 11:05 AM

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