Add decimal to number

  • Thread starter Thread starter evoxfan
  • Start date Start date
E

evoxfan

I have a column of 5 digit numbers like this:
15055
15060
15071

I would like add a decimal after 3 digits and 0 to the end to show:
150.550
150.600
150.710

What would be the best way to accomplish this?
 
Maybe this:

Enter 100 in an empty cell
Copy that cell: Edit>Copy
Select the cells you want to change
Then: Edit>Paste Special>Divide>OK
Now, format those cells as NUMBER 3 decimal places
 
One way
Sub dodigits()
For i = 1 To 6
Cells(i, "b") = Cells(i, "b") / 100
Cells(i, "b").NumberFormat = "0.000"
Next i
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top