Reading text file line by line, and recalculating spreadsheet for each line

Herseem

New Member
Joined
Sep 25, 2017
Messages
1
Hi,

I have a very large file of forex data that I wish to use to test trading strategies. I know that normally you'd have all the data you want in the spreadsheet and all the formulae replicated down. But this input file is way too big for that. Plus, I want to be able to design the one spreadsheet and then read different input files with it without having to create a different spreadsheet for each data file.

So what I want to do is read the first line of the file into, Let's say, A5 on the spreadsheet, then recalculate the spreadsheet, then read the next line of the file into A5 on the spreadsheet, and recalculate the spreadsheet again, right up until the end of the file. In other words, the relatively small spreadsheet will crawl it's way along the huge data file, continually recalculating as it goes.

I have done this previously, quite a few years ago, but annoyingly, that file was on a hard dish that crashed and I didn't have a back up. So I need to re-learn.

I'm aware that I COULD put all the calculations for each record into VBA, but that would be much harder than using the spreadsheet to do all the processing on each record.

Also absolute performance is not important. I don't care if the processing is inefficient and slow, what's more important is that it's easy to set up.

I've seen how to read a file within Excel, but the key bit is recalculating the spreadsheet based on the new line that's just been read, for each line. I haven't been able to find how to do that.

Any help gratefully received :)

Mike Hersee
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,214,822
Messages
6,121,772
Members
449,049
Latest member
greyangel23

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