Formatting issue

Pete63

New Member
Joined
Aug 26, 2005
Messages
11
I download files from our archaic business system in text format which I then import into Excel, when values are negative they are shown as xxx.xx-. The minus sign is on the right and I can't get the original file format changed.

Would anyone happen to know how I can quickly convert these to proper numbers in Excel?

Any help gratefully receieved
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Well, here's a formula approach.

=IF(RIGHT(A2,1)="-",-1*LEFT(A2,LEN(A2)-1),A2)+0
 
Upvote 0
Pete63 said:
I download files from our archaic business system in text format which I then import into Excel, when values are negative they are shown as xxx.xx-. The minus sign is on the right and I can't get the original file format changed.

Would anyone happen to know how I can quickly convert these to proper numbers in Excel?

Any help gratefully receieved
Hi Pete63:

Following is my two step approach ...

1) select all the cells you want to fix, then do EDIT|Replace ... key-in - in the Replace_what box and nothing in the Replace_with box
At this point all the numbers will be converted into positive numbers

2) in a blank cell on the worksheet key-in -1, and then do EDIT|Copy ...
then select all the numbers where the - sign had been removed, and then do EDIT|PasteSpecial ... multiply

I hope this helps!
 
Upvote 0
Thanks also

Yogi Anand

Your technique works too. What can I say? You guys are amazing!
:)
 
Upvote 0

Forum statistics

Threads
1,211,803
Messages
6,104,071
Members
447,892
Latest member
madara uchiha

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top