How to convert text to number in cells?

E

ermeko

Hi,
I want to convert text into number but the code below do nothing:
ActiveSheet.Cells(1, 1).NumberFormat = "##0.0" 'or the code below
ActiveSheet.Cells(1, 1).value = format(ActiveSheet.Cells(1, 1).value,"##0.0")
What is the problem?
Since it is accepted as text I can not use
ActiveSheet.Cells(1, 3).formula = "=sum(a1:a2)"
 
A

Alok

One good method of converting text formatted numbers into numbers is the
following.
1. Type a 1 in any unused cell.
2. Copy the cell with the 1
3. Highlight the text formatted numbers
4. Edit/Paste Special/Multiply
Hope this helps.

Alok Joshi
 

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

Top