brooklyn1976
New Member
- Joined
- May 14, 2012
- Messages
- 25
Not sure if this is an Excel question per se, but hopefully someone can point me in the right direction.
I have received two txt files, lets call them “F” and “P.”
F contains 1372 lines each with approximately 330 characters (including spaces).
P contains 302 lines each with approximately 353 characters (including spaces).
The files contain data that should be broken into columns, but the files do not contain any delimiters so I cannot import into Excel until I add them to the files.
Is there a program or script i can use to add delimiters at the same locations on each line of the files.
I am using a Mac and have minimal experience with VBA. Any help is greatly appreciated. Thanks!!
For “F” I want a delimiter after the following characters on each line:
12
20
26
32
44
46
50
54
62
74
83
85
92
101
110
117
124
133
135
142
149
156
163
170
178
185
190
201
202
203
204
205
209
210
211
212
219
226
227
236
238
240
247
254
261
270
282
293
304
315
326
For “P”:
12
20
22
26
30
37
38
44
54
66
75
77
84
93
102
111
118
125
127
134
141
148
155
162
169
177
184
189
200
201
202
203
204
208
209
221
222
223
238
239
240
249
251
253
260
267
274
283
292
304
315
326
337
348
I have received two txt files, lets call them “F” and “P.”
F contains 1372 lines each with approximately 330 characters (including spaces).
P contains 302 lines each with approximately 353 characters (including spaces).
The files contain data that should be broken into columns, but the files do not contain any delimiters so I cannot import into Excel until I add them to the files.
Is there a program or script i can use to add delimiters at the same locations on each line of the files.
I am using a Mac and have minimal experience with VBA. Any help is greatly appreciated. Thanks!!
For “F” I want a delimiter after the following characters on each line:
12
20
26
32
44
46
50
54
62
74
83
85
92
101
110
117
124
133
135
142
149
156
163
170
178
185
190
201
202
203
204
205
209
210
211
212
219
226
227
236
238
240
247
254
261
270
282
293
304
315
326
For “P”:
12
20
22
26
30
37
38
44
54
66
75
77
84
93
102
111
118
125
127
134
141
148
155
162
169
177
184
189
200
201
202
203
204
208
209
221
222
223
238
239
240
249
251
253
260
267
274
283
292
304
315
326
337
348