ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel Formatting (https://www.excelbanter.com/excel-discussion-misc-queries/182436-excel-formatting.html)

Darin

Excel Formatting
 
I have 2 sets of data/columns that I'm formatting to show 7 digits (e.g. 5240
becomes 0005420). I'm concatenating this with another column of 1-3 digits
but when I concatenate I'm loosing the leading zeros which I still need (the
# becomes 15240 instead of 10005240). Any ideas of how I can get the leading
zero's to stay? Thx.



Bob Umlas, Excel MVP

Excel Formatting
 
=text(A1,"0000000") & text(B1,"0000000")
Bob Umlas
Excel MVP

"Darin" wrote:

I have 2 sets of data/columns that I'm formatting to show 7 digits (e.g. 5240
becomes 0005420). I'm concatenating this with another column of 1-3 digits
but when I concatenate I'm loosing the leading zeros which I still need (the
# becomes 15240 instead of 10005240). Any ideas of how I can get the leading
zero's to stay? Thx.




All times are GMT +1. The time now is 01:28 AM.

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