close

Dear all,

I would appreciate help and advice for my problem. I want to import a data
set into excel using Data -gt; Import External Data -gt; Import Data. My data
(which is saved as text file) looks like this:

Belgium (1999)22/315/232
Greenland (1996)5/213/87

i.e. country 'space' 'open bracket' year 'close bracket' 'tab' number '/'
number tab number '/' number.

What I want to import to the spread sheet is just country in one column,
year (without the brackets) in the next column, followed by columns of number
number number number without the 'forward / slash' in between. I tried but
not getting anywhere with the above function. Would appreciate help and
advice. Thank you.

Kind regards,
jes

You can use Data, Text to columns, delimited
separate first on left paren
next pass separate on space
use change all to change close paren to (nothing, leave empty) via Ctrl H
--
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: www.mvps.org/dmcritchie/excel/excel.htm
Search Page: www.mvps.org/dmcritchie/excel/search.htm

quot;xppuserquot; gt; wrote in message ...
gt; Dear all,
gt;
gt; I would appreciate help and advice for my problem. I want to import a data
gt; set into excel using Data -gt; Import External Data -gt; Import Data. My data
gt; (which is saved as text file) looks like this:
gt;
gt; Belgium (1999) 22/31 5/232
gt; Greenland (1996) 5/21 3/87
gt;
gt; i.e. country 'space' 'open bracket' year 'close bracket' 'tab' number '/'
gt; number tab number '/' number.
gt;
gt; What I want to import to the spread sheet is just country in one column,
gt; year (without the brackets) in the next column, followed by columns of number
gt; number number number without the 'forward / slash' in between. I tried but
gt; not getting anywhere with the above function. Would appreciate help and
gt; advice. Thank you.
gt;
gt; Kind regards,
gt; jes

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()