Modify specific things a txt file

jesperjes

New Member
Joined
Apr 26, 2018
Messages
1
Hello

I have now searched all over the net but can't find any good solutions.

Is it possible to modify something specific in a txt file? I have the following file, where I would like to multiply the red numbers by -1. I have many of these files and they all have the same "build up".

My thought was to import the file to excel, modify the numbers and create a new file (or preferably overwrite existing file). But isn't there a way to edit directly in the txt file?

This is what the txt file looks like:

ST
** CQP-10377.nc1
18074
CQP-10377
3
CQP-10377
S235JR
1
PL5
B
2100
1445
5
5
5
0
39.3
2.0
0.0
0.0
0.0
0.0


AK
v 0u 0 0 0 0 0 0
2100 0 0 0 0 0 0
2100 1445 0 0 0 0 0
0 1445 0 0 0 0 0
0 0 0 0 0 0 0
IK
v 949u 1064 0 0 0 0 0
949 1396 0 0 0 0 0
1611 1396 0 0 0 0 0
1611 1064 0 0 0 0 0
949 1064 0 0 0 0 0
BO
v 25s 25 9
v 25s 257 9
v 2075s 1420 9
EN
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,214,636
Messages
6,120,664
Members
448,976
Latest member
sweeberry

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