Jump to content
[[Template core/front/custom/_customHeader is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

Excel question


The Irish Doggy
 Share

Recommended Posts

I have a column of numbers and need to add double zeros to the front of every number and have it display correctly. Is there a quick function to add the 00 onto the front of the number?

 

Example:

Turn 2001

Into 002001

Link to comment
Share on other sites

I have a column of numbers and need to add double zeros to the front of every number and have it display correctly. Is there a quick function to add the 00 onto the front of the number?

 

Example:

Turn 2001

Into 002001

 

Format > Cells

 

Click on the Number tab

Select Custom from the Category drop down box

 

enter 000000

Link to comment
Share on other sites

Note that that will only work if the number you are formatting is four characters.

 

Another way, assuming your sheet already has the values in it, is to enter 00 in a cell and then use the concatenate formula to combine the "00" cell with you current numbers to add the "00" to the front.

 

Testing on my machine shows this works with the general format on the cells for the numbers and the formulas (but you must format the "00" cell as text to get it to work properly).

Edited by Big Country
Link to comment
Share on other sites

Note that that will only work if the number you are formatting is four characters.

 

Another way, assuming your sheet already has the values in it, is to enter 00 in a cell and then use the concatenate formula to combine the "00" cell with you current numbers to add the "00" to the front.

 

Testing on my machine shows this works with the general format on the cells for the numbers and the formulas (but you must format the "00" cell as text to get it to work properly).

 

This would have been my suggestion...

Link to comment
Share on other sites

Note that that will only work if the number you are formatting is four characters.

 

Another way, assuming your sheet already has the values in it, is to enter 00 in a cell and then use the concatenate formula to combine the "00" cell with you current numbers to add the "00" to the front.

 

Testing on my machine shows this works with the general format on the cells for the numbers and the formulas (but you must format the "00" cell as text to get it to work properly).

 

Only works if the number being formatted is 4 OR LESS characters.

Link to comment
Share on other sites

Only works if the number being formatted is 4 OR LESS characters.

 

Using the custom formatting as you suggested, if you put in a number with 3 characters, it puts 3 leading zeroes, a number with 2 characters gets 4 leading zeroes, and a single character number gets 5 leading zeroes, none of which meet the original criteria of having a double zero leader. Thus I stand by my statement that your method only works if the number in question has 4 characters. :wacko:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information