how to convert text to value

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have 40 thousands database of excel spreadsheet to convert from text eg.
12+3 to value. I tried many ways in doing but not success. Please help. thanks
 
Sally,

Select all the cells that you need to convert, and run this macro:

Sub TryNow()
Dim mycell As Range
For Each mycell In Selection
mycell.Value = Evaluate(mycell.Text)
Next mycell
End Sub

HTH,
Bernie
MS Excel MVP
 

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