Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 102
Default Import txt files into Excel

Import DataHi

When I for instance import txt files containing 4 criteria (Name, Business
Unit, Allocation Code & Dept) into Excel using Data - Import external Data
- Import Data, the text import wizard appears. I choose delimited and when I
go to step 2 of 3 I use space delimiters. What happens next is that the data
does not always get into the right column.

Column A Column B Column C Column D Column E
John New York 13 Sales
Mike LA 25 Accounting
Jesse New York 14 Sales-Exec
Donna New York 98 Finance

How Do i get Excel to import data in the correct columns (i.e. Name by name,
BU by BU, AC by AC and Dept. by Dept.)?!

Many tthanks in advance!!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Import txt files into Excel

Using the import text wizard select fixed width instead of space delimited,
then adjust the column breaks in the next screen by either dragging the
column break indicator left or right, or clicking on the ruler bar at a
specified location to insert a column break. To remove unnecessary column
break lines just double click on them.
--
Kevin Backmann


"Basta1980" wrote:

Import DataHi

When I for instance import txt files containing 4 criteria (Name, Business
Unit, Allocation Code & Dept) into Excel using Data - Import external Data
- Import Data, the text import wizard appears. I choose delimited and when I
go to step 2 of 3 I use space delimiters. What happens next is that the data
does not always get into the right column.

Column A Column B Column C Column D Column E
John New York 13 Sales
Mike LA 25 Accounting
Jesse New York 14 Sales-Exec
Donna New York 98 Finance

How Do i get Excel to import data in the correct columns (i.e. Name by name,
BU by BU, AC by AC and Dept. by Dept.)?!

Many tthanks in advance!!!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 102
Default Import txt files into Excel

Kevin,

Thank you for the tip, but instead of nicely putting the data into columns
(where they should be) i find that certain strings of text are seperated (Ne
wYork for instance). So because the widt of the data is not constant it seems
i cannot use the 'fixed width' option.

"Kevin B" wrote:

Using the import text wizard select fixed width instead of space delimited,
then adjust the column breaks in the next screen by either dragging the
column break indicator left or right, or clicking on the ruler bar at a
specified location to insert a column break. To remove unnecessary column
break lines just double click on them.
--
Kevin Backmann


"Basta1980" wrote:

Import DataHi

When I for instance import txt files containing 4 criteria (Name, Business
Unit, Allocation Code & Dept) into Excel using Data - Import external Data
- Import Data, the text import wizard appears. I choose delimited and when I
go to step 2 of 3 I use space delimiters. What happens next is that the data
does not always get into the right column.

Column A Column B Column C Column D Column E
John New York 13 Sales
Mike LA 25 Accounting
Jesse New York 14 Sales-Exec
Donna New York 98 Finance

How Do i get Excel to import data in the correct columns (i.e. Name by name,
BU by BU, AC by AC and Dept. by Dept.)?!

Many tthanks in advance!!!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Import txt files into Excel

The best bet is to get whatever application is producing the text file to
include suitable delimiters, perhaps tab or comma. Space is obviously not
suitable when you have spaces within fields.
--
David Biddulph

"Basta1980" wrote in message
...
Import DataHi

When I for instance import txt files containing 4 criteria (Name, Business
Unit, Allocation Code & Dept) into Excel using Data - Import external
Data
- Import Data, the text import wizard appears. I choose delimited and
when I
go to step 2 of 3 I use space delimiters. What happens next is that the
data
does not always get into the right column.

Column A Column B Column C Column D Column E
John New York 13 Sales
Mike LA 25
Accounting
Jesse New York 14 Sales-Exec
Donna New York 98 Finance

How Do i get Excel to import data in the correct columns (i.e. Name by
name,
BU by BU, AC by AC and Dept. by Dept.)?!

Many tthanks in advance!!!



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 102
Default Import txt files into Excel

David,

What if I import the data into one single cel (whole line into a1, a2 etc.)
Is there a way I can use the len, search or replace function (or a combo of
these) to replace al spaces with a ^ (for instance) and not the "correct"
spaces (like New York)?! I can use the new delimiter (^) within the text
import wizard.

"David Biddulph" wrote:

The best bet is to get whatever application is producing the text file to
include suitable delimiters, perhaps tab or comma. Space is obviously not
suitable when you have spaces within fields.
--
David Biddulph

"Basta1980" wrote in message
...
Import DataHi

When I for instance import txt files containing 4 criteria (Name, Business
Unit, Allocation Code & Dept) into Excel using Data - Import external
Data
- Import Data, the text import wizard appears. I choose delimited and
when I
go to step 2 of 3 I use space delimiters. What happens next is that the
data
does not always get into the right column.

Column A Column B Column C Column D Column E
John New York 13 Sales
Mike LA 25
Accounting
Jesse New York 14 Sales-Exec
Donna New York 98 Finance

How Do i get Excel to import data in the correct columns (i.e. Name by
name,
BU by BU, AC by AC and Dept. by Dept.)?!

Many tthanks in advance!!!






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Import txt files into Excel

Are your names always single words, or might you have "John Doe",
"Jesse James" ?

If you do import to one column, you could highlight the data and use
Edit | Replace (CTRL-H) to:

Find What: New York
Replace With: New_York
Replace All

and repeat this for other business units which have spaces in the
names (eg San Francisco to San_Francisco) as I presume you only have a
few of these, but there is no easy way of doing this with the name if
you have spaces in that.

Then you could use Data | Text-to-columns to parse the data, and
subsequently change all those _ back to spaces.

Hope this helps.

Pete

On Jan 10, 1:23*pm, Basta1980
wrote:
David,

What if I import the data into one single cel (whole line into a1, a2 etc.)
Is there a way I can use the len, search or replace function (or a combo of
these) to replace al spaces with a ^ (for instance) and not the "correct"
spaces (like New York)?! I can use the new delimiter (^) within the text
import wizard.



"David Biddulph" wrote:
The best bet is to get whatever application is producing the text file to
include suitable delimiters, perhaps tab or comma. *Space is obviously not
suitable when you have spaces within fields.
--
David Biddulph


"Basta1980" wrote in message
...
Import DataHi


When I for instance import txt files containing 4 criteria (Name, Business
Unit, Allocation Code & Dept) into Excel using Data - Import external
Data
- Import Data, the text import wizard appears. I choose delimited and
when I
go to step 2 of 3 I use space delimiters. What happens next is that the
data
does not always get into the right column.


Column A * *Column B * *Column C * *Column D * *Column E
John * * * * * New York * *13 * * * * * * *Sales
Mike * * * * * LA * * * * * * * * * * * * * * * 25
Accounting
Jesse * * * * *New York * *14 * * * * * * Sales-Exec
Donna * * * * New York * * * * * * * * * * 98 * * * * * * Finance


How Do i get Excel to import data in the correct columns (i.e. Name by
name,
BU by BU, AC by AC and Dept. by Dept.)?!


Many tthanks in advance!!!- Hide quoted text -


- Show quoted text -


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Import txt files into Excel

Yes, providing that you have a way of defining which are "correct spaces".
--
David Biddulph

"Basta1980" wrote in message
...
David,

What if I import the data into one single cel (whole line into a1, a2
etc.)
Is there a way I can use the len, search or replace function (or a combo
of
these) to replace al spaces with a ^ (for instance) and not the "correct"
spaces (like New York)?! I can use the new delimiter (^) within the text
import wizard.

"David Biddulph" wrote:

The best bet is to get whatever application is producing the text file to
include suitable delimiters, perhaps tab or comma. Space is obviously
not
suitable when you have spaces within fields.
--
David Biddulph

"Basta1980" wrote in message
...
Import DataHi

When I for instance import txt files containing 4 criteria (Name,
Business
Unit, Allocation Code & Dept) into Excel using Data - Import external
Data
- Import Data, the text import wizard appears. I choose delimited and
when I
go to step 2 of 3 I use space delimiters. What happens next is that the
data
does not always get into the right column.

Column A Column B Column C Column D Column E
John New York 13 Sales
Mike LA 25
Accounting
Jesse New York 14 Sales-Exec
Donna New York 98 Finance

How Do i get Excel to import data in the correct columns (i.e. Name by
name,
BU by BU, AC by AC and Dept. by Dept.)?!

Many tthanks in advance!!!






  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Import txt files into Excel

You can import the data into a single cell and then use DATA/TEXT TO COLUMNS
off the Excel menu. However, if you select a space as your delimiter cities
with 2 words will be in 2 cells, names w/first name, middle initial, last
name will be in 3 cells. You'll still have some work to do to hammer the
data into shape.
--
Kevin Backmann


"Basta1980" wrote:

David,

What if I import the data into one single cel (whole line into a1, a2 etc.)
Is there a way I can use the len, search or replace function (or a combo of
these) to replace al spaces with a ^ (for instance) and not the "correct"
spaces (like New York)?! I can use the new delimiter (^) within the text
import wizard.

"David Biddulph" wrote:

The best bet is to get whatever application is producing the text file to
include suitable delimiters, perhaps tab or comma. Space is obviously not
suitable when you have spaces within fields.
--
David Biddulph

"Basta1980" wrote in message
...
Import DataHi

When I for instance import txt files containing 4 criteria (Name, Business
Unit, Allocation Code & Dept) into Excel using Data - Import external
Data
- Import Data, the text import wizard appears. I choose delimited and
when I
go to step 2 of 3 I use space delimiters. What happens next is that the
data
does not always get into the right column.

Column A Column B Column C Column D Column E
John New York 13 Sales
Mike LA 25
Accounting
Jesse New York 14 Sales-Exec
Donna New York 98 Finance

How Do i get Excel to import data in the correct columns (i.e. Name by
name,
BU by BU, AC by AC and Dept. by Dept.)?!

Many tthanks in advance!!!




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
Import .csv files to Excel HughP Excel Discussion (Misc queries) 2 January 25th 07 05:17 PM
is it possible to import rtf files into Excel? Teulia Excel Discussion (Misc queries) 0 August 18th 06 02:59 PM
How do I import several csv files into one excel worksheet? chieftrain Excel Discussion (Misc queries) 10 June 6th 06 08:18 AM
HELP: Import several TXT files into Excel luis Excel Discussion (Misc queries) 6 April 9th 06 09:16 PM
How big can files be to import to excel, and is there a rec limit? MHayashisan Excel Discussion (Misc queries) 3 February 22nd 06 05:30 AM


All times are GMT +1. The time now is 12:54 PM.

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

About Us

"It's about Microsoft Excel"