Converting from Numbers to Text

  • Thread starter Thread starter Barb Reinhardt
  • Start date Start date
B

Barb Reinhardt

I have a column of data that has data in both number or text formats. I'd
like to convert it all to text. How do I do that? I've tried the t()
function and the text() function in another column with no success, although
I'm not sure I'm using the right arguments.

Thanks in advance.

Barb Reinhardt
 
As soon as I posted this request, I figured it out. Thanks everyone.
 
Barb,

Select you cells and run this:

Sub ConvertToTest()
Dim myCell
Selection.NumberFormat = "@"
For Each myCell In Selection
myCell.Value = myCell.Value
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