+ Reply to Thread
Results 1 to 14 of 14

Add two zeros in front of every number cell

  1. #1
    Registered User
    Join Date
    01-12-2016
    Location
    Europe
    MS-Off Ver
    MS 2013
    Posts
    48

    Add two zeros in front of every number cell

    Hi Forum,

    Does anyone know a quick way to add on two zeros in front of every cell, so that the cell remain Number format (not text format)?

    Br

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,709

    Re: Add two zeros in front of every number cell

    Format the cell as 00########
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-12-2016
    Location
    Europe
    MS-Off Ver
    MS 2013
    Posts
    48

    Re: Add two zeros in front of every number cell

    But this will not allow me to calculate with the the numbers with zeros infront. I need to add 00 so the numbers change.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,709

    Re: Add two zeros in front of every number cell

    But this will not allow me to calculate with the the numbers with zeros infront. I need to add 00 so the numbers change.
    Not sure I understand. If I multiply the formatted numbers by 2, it generates a number and if I format them the same as the cells holding the two zeros, I get the result with two zeros preceding.

    v A B C
    1 001234 002468

    v A B C
    1 1234 =A1*2

  5. #5
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Add two zeros in front of every number cell

    @ uglaskov! below thread is as same as this is,
    http://www.excelforum.com/excel-prog...very-cell.html
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  6. #6
    Registered User
    Join Date
    01-12-2016
    Location
    Europe
    MS-Off Ver
    MS 2013
    Posts
    48

    Re: Add two zeros in front of every number cell

    If I do that with 1.4731302849212, which is a cell value, then the cell will show 001. But the intrinsic value is still 1.4731302849212.

  7. #7
    Registered User
    Join Date
    01-12-2016
    Location
    Europe
    MS-Off Ver
    MS 2013
    Posts
    48

    Re: Add two zeros in front of every number cell

    Well in the other thread I was seeking a macro to solve the problem. I don't see how that is identical.

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,709

    Re: Add two zeros in front of every number cell

    I cannot replicate your issue. See below my results

    v A B C
    1 001.47313028 002.94626057

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,709

    Re: Add two zeros in front of every number cell

    It is not a macro or formula issue. It is a formatting issue.

  10. #10
    Registered User
    Join Date
    01-12-2016
    Location
    Europe
    MS-Off Ver
    MS 2013
    Posts
    48

    Re: Add two zeros in front of every number cell

    Okay mine is clearly not working. So as it stands right now I got a cell with the value of 1.4731302849212. I want it to be 0.0147 and so on.

    Are you suggesting right click, then format cells --> custom --> and typing in 00#####?

    That is not working in my sheet

  11. #11
    Registered User
    Join Date
    01-04-2016
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    42

    Re: Add two zeros in front of every number cell

    Have you tried

    Right click the cell ≥format cell≥ custom> then type 000.00000000
    The count of 0 should be the same with the count of your numbers displayed in the cell

  12. #12
    Registered User
    Join Date
    01-12-2016
    Location
    Europe
    MS-Off Ver
    MS 2013
    Posts
    48

    Re: Add two zeros in front of every number cell

    Yes, this will not change the value of the cell

  13. #13
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,709

    Re: Add two zeros in front of every number cell

    Clearly there has been confusion. If you wish a number such as 1.565 to be 0.01565, then it is a simple case of dividing by 100, ie =1.565/100. Or am I missing something here? In your original thread, you indicated that you wanted the number presented as having two zeros, but made no mention of changing the value. Which is your case???

  14. #14
    Registered User
    Join Date
    01-12-2016
    Location
    Europe
    MS-Off Ver
    MS 2013
    Posts
    48

    Re: Add two zeros in front of every number cell

    Alansidman, I will use your methodology by dividing by 100 and then replace all .

    That works. I appreciate all your inputs!

+ 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. Keeping zeros in front of number
    By gronnies in forum Excel General
    Replies: 2
    Last Post: 08-29-2010, 02:09 PM
  2. removing zeros at front of numbers
    By uglyduck in forum Excel General
    Replies: 2
    Last Post: 04-28-2010, 06:25 AM
  3. zeros in front of numbers in cell
    By Nennie in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-07-2009, 03:21 PM
  4. zeros at the front of numbers
    By fretwizard in forum Excel General
    Replies: 2
    Last Post: 11-06-2008, 08:19 AM
  5. Replies: 2
    Last Post: 06-30-2006, 10:25 AM
  6. How do I keep the zeros in front of numbers when i split a cell
    By tom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-10-2005, 11:05 PM
  7. putting leading zeros in front of number
    By caroline argyle in forum Excel General
    Replies: 2
    Last Post: 08-02-2005, 09:05 AM
  8. [SOLVED] How do I get zeros to stay in front of a # when using the concate.
    By czarkzm in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-15-2005, 12:06 PM

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