Help Formatting Numbers

pcinch

New Member
Joined
Jun 16, 2015
Messages
3
I have a group of census tract numbers that I need to normalize in order to analyze.

The general format of a census tract number is ####.## but not every tract has six digits. I will need to remove the decimals, and add leading and trailing zeroes to get each of the numbers to be in the form of ######

For example, census tract 141.29 needs to become 014129, and tract 6 will become 000600.

Any help would be much appreciated as I am new to excel
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Welcome to the board.

Are any of your whole number values more than 4 digits (e.g. 99999)?
 
Upvote 0
You're welcome!
Can i mark the thread as solved somehow?
You just did!;)
Your acknowledgement is sufficient.
 
Upvote 0
I don't think you can use any sort of Custom Formatting to do that
Given that the OP's numbers are not going to be used in any mathematical calculations, there is a Custom Format that will visually present the numbers the way the OP wants... select the cells to format and open the Format Cells dialog box, then on the Number Tab, select Custom and keyin 000000 then press CTRL+J and then keyin a percent sign (%) into the Type field, then go to the Alignment Tab and put a check mark in the "Wrap text" checkbox, then click the OK button... the display will contain the 6 digit number the OP wants and the percent sign that is attached to it will be invisible below the bottom of the cell.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,180
Members
448,871
Latest member
hengshankouniuniu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top