ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Number Text Format (https://www.excelbanter.com/excel-discussion-misc-queries/213739-number-text-format.html)

evoxfan

Number Text Format
 
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.

Jonathan Cooper

Number Text Format
 
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.


"evoxfan" wrote:

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.


Rick Rothstein

Number Text Format
 
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

--
Rick (MVP - Excel)


"evoxfan" wrote in message
...
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.




All times are GMT +1. The time now is 02:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com