Number Text Format

E

evoxfan

I have a column of numbers formatted as text such as:
099.600
'101.550
102.000
'104.430
105.500

Some numbers have an apostrophe in front and some do not.

I would like to make all the numbers in this column consistent without the
apostrophe. I would also like to keep them as text since converting them to
numbers would likely get rid of the first character for numbers less than 100.

What is the best way to accomplish this?

Thanks in advance for your help.
 
J

Jonathan Cooper

You could create a helper column. Use the formula =TEXT(A2,"000.000").
copy/paste the formula next to all of your data, then copy and paste the
values of the formulas.
 
R

Rick Rothstein

First, select all of the cells with these numbers in them, then format your
cells as text, then press Alt+F11 and execute this statement in the
Immediate window (press Alt+G if you don't see the Immediate window)...

Selection.Value = Selection.Value
 

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