Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-22-2008, 05:52 PM
MCI
 
Posts: n/a
Importing large text files to excel

Hi, i am using Excel 2002, and I am wondering what is an efficient way
to import text files with more than 65536 lines to excel (eg. if it's
120000 lines, I want the excel workbook to automatically create two
tabs, with the first tab having the first part of the text file, line
1 to line 65000, the second tab having line 65001 to 120000.)

Right now, i am using a splitter (HJSplit) to first manually split the
large text file into several small files, then i import each file to
an individual tab in a excel workbook. But obviously that's not the
best way.

Thank you very much.
Reply With Quote
  #2 (permalink)  
Old 07-22-2008, 07:00 PM
Gord Dibben
 
Posts: n/a
Re: Importing large text files to excel

http://support.microsoft.com/default...;en-us;Q120596


Gord Dibben MS Excel MVP

On Tue, 22 Jul 2008 10:52:17 -0700 (PDT), MCI <330006@gmail.com> wrote:

>Hi, i am using Excel 2002, and I am wondering what is an efficient way
>to import text files with more than 65536 lines to excel (eg. if it's
>120000 lines, I want the excel workbook to automatically create two
>tabs, with the first tab having the first part of the text file, line
>1 to line 65000, the second tab having line 65001 to 120000.)
>
>Right now, i am using a splitter (HJSplit) to first manually split the
>large text file into several small files, then i import each file to
>an individual tab in a excel workbook. But obviously that's not the
>best way.
>
>Thank you very much.


Reply With Quote
  #3 (permalink)  
Old 07-22-2008, 09:32 PM
Chip Pearson
 
Posts: n/a
Re: Importing large text files to excel

See http://www.cpearson.com/excel/ImportBigFiles.aspx for code that will
import a text file of any size, automatically moving from one sheet to the
next.


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)




"MCI" <330006@gmail.com> wrote in message
news:699a465f-ede2-48ce-ba80-8574f027c7e1@r66g2000hsg.googlegroups.com...
> Hi, i am using Excel 2002, and I am wondering what is an efficient way
> to import text files with more than 65536 lines to excel (eg. if it's
> 120000 lines, I want the excel workbook to automatically create two
> tabs, with the first tab having the first part of the text file, line
> 1 to line 65000, the second tab having line 65001 to 120000.)
>
> Right now, i am using a splitter (HJSplit) to first manually split the
> large text file into several small files, then i import each file to
> an individual tab in a excel workbook. But obviously that's not the
> best way.
>
> Thank you very much.


Reply With Quote
  #4 (permalink)  
Old 07-22-2008, 09:33 PM
=?Utf-8?B?V2lnaQ==?=
 
Posts: n/a
Re: Importing large text files to excel

Also, http://www.cpearson.com/excel/imptext.htm


--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"Gord Dibben" wrote:

> http://support.microsoft.com/default...;en-us;Q120596
>
>
> Gord Dibben MS Excel MVP
>
> On Tue, 22 Jul 2008 10:52:17 -0700 (PDT), MCI <330006@gmail.com> wrote:
>
> >Hi, i am using Excel 2002, and I am wondering what is an efficient way
> >to import text files with more than 65536 lines to excel (eg. if it's
> >120000 lines, I want the excel workbook to automatically create two
> >tabs, with the first tab having the first part of the text file, line
> >1 to line 65000, the second tab having line 65001 to 120000.)
> >
> >Right now, i am using a splitter (HJSplit) to first manually split the
> >large text file into several small files, then i import each file to
> >an individual tab in a excel workbook. But obviously that's not the
> >best way.
> >
> >Thank you very much.

>
>

Reply With Quote
  #5 (permalink)  
Old 07-22-2008, 09:41 PM
Dave Peterson
 
Posts: n/a
Re: Importing large text files to excel

I'd continue to use HJSplit (maybe even mechanize it in a macro).

Then record a macro that would open both text files and parse them the way I
want.

Then when I needed to do it again, I'd run the macro (or HJSplit and then the
macro).

MCI wrote:
>
> Hi, i am using Excel 2002, and I am wondering what is an efficient way
> to import text files with more than 65536 lines to excel (eg. if it's
> 120000 lines, I want the excel workbook to automatically create two
> tabs, with the first tab having the first part of the text file, line
> 1 to line 65000, the second tab having line 65001 to 120000.)
>
> Right now, i am using a splitter (HJSplit) to first manually split the
> large text file into several small files, then i import each file to
> an individual tab in a excel workbook. But obviously that's not the
> best way.
>
> Thank you very much.


--

Dave Peterson
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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



All times are GMT. The time now is 12:23 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109