import .txt files

irwin

New Member
Joined
Jul 15, 2005
Messages
4
I have a dilemia, when I import a large .txt file the negative numbers appear like this....123456.78-, I need the negative to be on the other side, like this -123456.78. Is there anyway to do this? I have tried recording a macro, but that doesn't work, I tried a custom format that doesn't work either. Any help would be excellent!!!! Thanks.......

These boards are excellent!!!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
What version of Excel do you have?

I believe in later versions there is an option to fix this via Data>Text to Columns..., something like Trailing minuses or something.

If you wanted to automate try recording a macro when you do it manually.
 
Upvote 0
when i try to record the macro, it copies the number in the cell to the new cell. if i change a2, then run the macro, it makes a3 the same as a2

i tried the text to columns, that does work either.

I have excel 2000
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,447
Members
448,966
Latest member
DannyC96

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