Iterating through a list and copying results

bellawala

Board Regular
Joined
Aug 20, 2002
Messages
73
This is an amazing board! I hope this isn't too basic a question, but here goes:

I have a very long array (about 10,000 rows) and I want to do some complex calculations on each element. This includes querying an outside datasource and manipulating the returned data. The result of this manipulation is a single value.

What I would like to do is take the first row, query the outside datasource and make my calculations, then copy the result to the column to the right of the queried element. When this is complete, I would like to move on to the next item, etc.

Any ideas? Thank you very much.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi - welcome to the board!

Sure some help will come your way, but need more info...whata's the outside data source; how are you accessing it; what calculations are you performing; does your range have gaps; what to do with errors.

Doesn;t sound like the kind of issue that will get solved all at once, but post back with more details & we can try & deal with one issue at a time...

Paddy
 
Upvote 0
Great. Here are the specifics:

I'm writing a portfolio management tool. I'm starting with a list of all symbols traded on the US markets (there are about 10,000) of them. For each symbol, I will be querying a few websites to get some historical information. With that, I will be doing some technical analysis and generating 5 values associated with the symbol. I would like to copy those values to the table alongside the symbol itself, then move on to the next symbol. When I get to the end of the list, I would like to start all over again.

Is this enough information?
 
Upvote 0
It is more information, but what are you asking - to have the entire application built for you???

On the assumption that you're not, you must want either:

a) general advice on how to approach your project - how to go about setting up web queries, for example,
or
b) help with a specific problem which you have yet to detail.

...or perhaps both!


So...what, specifically, do you need help with?

Paddy
 
Upvote 0

Forum statistics

Threads
1,224,395
Messages
6,178,352
Members
452,841
Latest member
GenAkaman

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