G
GARY
I have a text-file with 10,000 rows. (Each row contains an
item-number, a name, an address and an amount).
I used a text-editor (TEXTPAD) to move the item-numbers, names,
addresses and amounts to varying positions. (Each field is separated
by many spaces).
For example:
In the first row, the item-number may start in position 1 and end in 8.
In the second row, the item-number may start in 32 and end in 62
In the third row, the item-number may start in 40 and end in 50.
In the fourth row, the item-number may start in 18 and end in 75.
(A similar scenario applies to the names, addresses and amounts).
Now, when I open the text-file in Excel, I click on 'fixed-width'.
Then, I'm asked to create "break lines" to separate each field into
columns.
For the 10,000 rows, how can I determine the maximum width (i.e., the
first and the last positions) of each field?
item-number, a name, an address and an amount).
I used a text-editor (TEXTPAD) to move the item-numbers, names,
addresses and amounts to varying positions. (Each field is separated
by many spaces).
For example:
In the first row, the item-number may start in position 1 and end in 8.
In the second row, the item-number may start in 32 and end in 62
In the third row, the item-number may start in 40 and end in 50.
In the fourth row, the item-number may start in 18 and end in 75.
(A similar scenario applies to the names, addresses and amounts).
Now, when I open the text-file in Excel, I click on 'fixed-width'.
Then, I'm asked to create "break lines" to separate each field into
columns.
For the 10,000 rows, how can I determine the maximum width (i.e., the
first and the last positions) of each field?