Add Decimal to Existing Number?

ktm959

New Member
Joined
Sep 4, 2010
Messages
6
Hi Everyone --

I have what is probably an easy question. I have a column of data which consists of 4 numeric values such as 0040. I need to add a decimal all the way down the column to have a resulting value of 004.0. I have about 150,000 rows...

Thanks in advance for any help!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
If they are all stored as text and are all 4 digits long you could paste this formula into the column next to your column and change the A1 to match your column, then double click the cell marker to copy down your page.

Code:
=LEFT(A1,3)&"."&RIGHT(A1,1)
 
Upvote 0
hello
If you want to maintain the integrity of the number instead of using text, an alternative is to use the custom format feature on your range of cells. Highlight your cells, then Click Ctrl+F1 >Number>Custom> enter 000.0 into the Custom field and hit enter. That will format your number as you want but keep it as a number.
 
Upvote 0
Thank you so much! It is working correctly, took a while to do auto-fill. I'm not sure yet about preserving the number, I don't think it is necessary for my application -- I am importing these numbers as product weights into an e-commerce platform so I'm pretty sure it will work as text.

Thank you guys again, much appreciated!
 
Upvote 0
Enter .1 in a spare cell
Copy that cell
Select the range to be changed.
PasteSpectial>Mathematics>multiply
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,633
Members
452,933
Latest member
patv

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