importing large files into excel

wiskaz

New Member
Joined
Sep 8, 2002
Messages
4
Hi,

I am trying to import a large file into excel. The file is approx 100,000 lines and is divided into 7 columns by commas. It is an *.asc file.

Is there any more efficient way of importing it besides using TextStream, importing about 10,000 lines and then using Text to Columns, putting the data in an array, then going to the next 10K? This way takes about 2min/100K lines.

I have also tried using Data -> Import External Data -> and then opening the file. Using this, you can set a row to start importing on but the problem is it only goes up to 32,000. My files have over 100K lines and the last rows are cut off this way.

Are there any other ways to import the data to excel?

Your help will be much appreciated.

Thanks.
 
Hi Ian,

I'm interested in using your method with excel/access. The Access idea was given to me in an earlier message. It was a solution to store/access more than 65K records (limit of excel).

I am currently using an array that takes its data from a text file using TextStream. This method is very inefficient and takes a long time.

The data is intraday stock prices and in the end I want to figure out P/L using a special formula.

Is there a way to directly access the data from Access in Excel? I know how to put the data in Access, just not how to access record-by-record from Excel.

Thanks for the help.
 
Upvote 0

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,214,979
Messages
6,122,557
Members
449,088
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top