ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Custom Cell Format, Zero Pad (https://www.excelbanter.com/excel-discussion-misc-queries/131734-custom-cell-format-zero-pad.html)

Brandon

Custom Cell Format, Zero Pad
 
Hello,

I have some cells I would like to display numbers as two significant
integers, i.e.
0 - 00
1 - 01
2 - 02
...
99 - 99

Is there anyway to do this? I tried the format:
0#

But it doesn't work for 0 or when the number entered is greater than 99.

I would also like to take these cell values and concatenate them together as:
##.##.##
I tried the concatenate function, but it removes the leading zeroes.

Any help is much appreciated.
Thanks


Vergel Adriano[_2_]

Custom Cell Format, Zero Pad
 
Try "00" as the number format.

For concatenating the numbers, assuming they are in A1, A2, A3:

=TEXT(A1, "00") & "." & TEXT(A2, "00") & "." & TEXT(A3, "00")


"Brandon" wrote in message
...
Hello,

I have some cells I would like to display numbers as two significant
integers, i.e.
0 - 00
1 - 01
2 - 02
..
99 - 99

Is there anyway to do this? I tried the format:
0#

But it doesn't work for 0 or when the number entered is greater than 99.

I would also like to take these cell values and concatenate them together
as:
##.##.##
I tried the concatenate function, but it removes the leading zeroes.

Any help is much appreciated.
Thanks




----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

Gary''s Student

Custom Cell Format, Zero Pad
 
Format Cells... Number Custom 00

for the first question

=TEXT(J1,"00.") & TEXT(J2,"00.") & TEXT(J3,"00.")

for the second
--
Gary''s Student
gsnu200707


"Brandon" wrote:

Hello,

I have some cells I would like to display numbers as two significant
integers, i.e.
0 - 00
1 - 01
2 - 02
..
99 - 99

Is there anyway to do this? I tried the format:
0#

But it doesn't work for 0 or when the number entered is greater than 99.

I would also like to take these cell values and concatenate them together as:
##.##.##
I tried the concatenate function, but it removes the leading zeroes.

Any help is much appreciated.
Thanks



All times are GMT +1. The time now is 12:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com