ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   format census tract numbers (https://www.excelbanter.com/excel-worksheet-functions/16542-format-census-tract-numbers.html)

a_rust

format census tract numbers
 
How do I format census tract numbers into a six digit format, suitable for
concatenation? I need to add zeroes on to the beginning of some cells, but
not others.

Jay

How do I format census tract numbers into a six digit format, suitable
for concatenation? I need to add zeroes on to the beginning of some
cells, but not others.


If cell A1 holds a tract number, one way is to use:
=TEXT(A1,"000000")

Generalize to meet your need.


All times are GMT +1. The time now is 07:22 AM.

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