Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Mar 2003
    Location
    Michigan, USA
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Importing Text Fields (97/2K)

    Opening these lines as a *.csv file reproduces my problem.
    "46","1800,802,1950,741,2100,668,2200,623",20,993, 29
    "46","1800,802,1950,741,2100,668,2200,623",20,993, 29
    "46","1800,802,1950,741,2100,668,2200,623",20,993, 29
    I want my second column to be formatted as text with all the characters between double quotes. Excel decides this is a number and I lose information. What would be the best way to force Excel to format some fields and text and others as numeric? I like being able to double click *.csv files and skipping the import wizard.
    Thanks for any help/ideas,

  2. #2
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Importing Text Fields (97/2K)

    Change the name of the file to .txt, then do the following:

    1- Start excel.

    2- Select Open from the File menu.

    3- Change "Files of type" to all files, find the file, select it, and click open.

    4- Click Delimited then the Next button.

    5- Click Comma then the Next button.

    6- Click the column header above the item you want to be text and then click on the Text radio button.

    7- Click on Finish.
    Legare Coleman

  3. #3
    New Lounger
    Join Date
    Mar 2003
    Location
    Michigan, USA
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Importing Text Fields (97/2K)

    Thanks for the explicit instructions. I want to avoid the import wizard. Do you know of a way to accomplish my goal without running the wizard?

  4. #4
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Importing Text Fields (97/2K)

    You could write VBA code to read the file and store it in a sheet. There are a couple of threads here that show how to do that. Here's One. Here's another.
    Legare Coleman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •