#1   Report Post  
Jagiellon Wilson
 
Posts: n/a
Default Import Text

I want to import a text files into Excel and have very other line in a
different column

Like this, the original plain text file (txt):
A
B
C
D

Excel:
A | B
C | D

Is this doable in Excel?

Thanks
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

After you import the data, put this in B1:
=INDEX(A:A,(ROW()*2-1))

Put this in C1:
=INDEX(A:A,(ROW())*2)

Select B1:C1 and drag down (about halfway)

Then select columns B:C and edit|copy, edit|paste special|values

And delete column A.

Jagiellon Wilson wrote:

I want to import a text files into Excel and have very other line in a
different column

Like this, the original plain text file (txt):
A
B
C
D

Excel:
A | B
C | D

Is this doable in Excel?

Thanks


--

Dave Peterson
  #3   Report Post  
Jagiellon Wilson
 
Posts: n/a
Default

Thanks! It worked great!

Jag
  #4   Report Post  
Posted to microsoft.public.excel.misc
xw xw is offline
external usenet poster
 
Posts: 1
Default Import Text

I have a similar but more complicated situation. I want to import data in a
text file to a Excel file.
Text:
A = a
B = b
C = c

A = a1
C = c1
....
Excel:
A B C
a b c
a1 c1
--
Is this doable? Thanks,
xw


"Dave Peterson" wrote:

After you import the data, put this in B1:
=INDEX(A:A,(ROW()*2-1))

Put this in C1:
=INDEX(A:A,(ROW())*2)

Select B1:C1 and drag down (about halfway)

Then select columns B:C and edit|copy, edit|paste special|values

And delete column A.

Jagiellon Wilson wrote:

I want to import a text files into Excel and have very other line in a
different column

Like this, the original plain text file (txt):
A
B
C
D

Excel:
A | B
C | D

Is this doable in Excel?

Thanks


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text import wizard defaults? Bruce Bowler Excel Discussion (Misc queries) 4 April 3rd 23 10:57 AM
Import comma delimited text Lin Excel Discussion (Misc queries) 3 July 28th 06 04:07 PM
Import only certain rows of a huge text file AriBari Excel Discussion (Misc queries) 4 July 11th 05 06:54 PM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
how do I enable "import text file" excel 2002? jw_schmid Excel Discussion (Misc queries) 2 February 9th 05 10:39 PM


All times are GMT +1. The time now is 11:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"