ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   text to numeric (https://www.excelbanter.com/excel-discussion-misc-queries/162236-text-numeric.html)

Clem

text to numeric
 
I have imported data into Excel 97 and negative numbers appear in columns
like this:

123.45-
24.21-
1000.78-

These are text and will not allow any sums. How can I convert the above to
numeric values so they appear as follows:
-123.45
-24.21
-1000.78

OR

(123.45)
(24.21)
(1000.78)

Thanks,


JE McGimpsey

text to numeric
 
See

http://www.mcgimpsey.com/excel/postfixnegatives.html

In article ,
CLEM wrote:

I have imported data into Excel 97 and negative numbers appear in columns
like this:

123.45-
24.21-
1000.78-

These are text and will not allow any sums. How can I convert the above to
numeric values so they appear as follows:
-123.45
-24.21
-1000.78

OR

(123.45)
(24.21)
(1000.78)

Thanks,


mohavv

text to numeric
 
On Oct 16, 2:51 pm, JE McGimpsey wrote:
See

http://www.mcgimpsey.com/excel/postfixnegatives.html

In article ,

CLEM wrote:
I have imported data into Excel 97 and negative numbers appear in columns
like this:


123.45-
24.21-
1000.78-


These are text and will not allow any sums. How can I convert the above to
numeric values so they appear as follows:
-123.45
-24.21
-1000.78


OR


(123.45)
(24.21)
(1000.78)


Thanks,


Try following in the colomn next to imported

=IF(RIGHT(A2,1)="-",VALUE(LEFT(A2,LEN(A2)-1)),VALUE(LEFT(A2,LEN(A2))))

Cheers
Harold


Clem

text to numeric
 
Thank you both, this solved my problem!!!!!!!!!!!!!!!!!

"mohavv" wrote:

On Oct 16, 2:51 pm, JE McGimpsey wrote:
See

http://www.mcgimpsey.com/excel/postfixnegatives.html

In article ,

CLEM wrote:
I have imported data into Excel 97 and negative numbers appear in columns
like this:


123.45-
24.21-
1000.78-


These are text and will not allow any sums. How can I convert the above to
numeric values so they appear as follows:
-123.45
-24.21
-1000.78


OR


(123.45)
(24.21)
(1000.78)


Thanks,


Try following in the colomn next to imported

=IF(RIGHT(A2,1)="-",VALUE(LEFT(A2,LEN(A2)-1)),VALUE(LEFT(A2,LEN(A2))))

Cheers
Harold




All times are GMT +1. The time now is 07:14 PM.

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