Okey so my problem is twofold, but the the two parts are linked closely together:
PART I:
I have a an enormous amount of data all listed in columns in this shape:
[TABLE="width: 500"]
<tbody>[TR]
[TD]product code[/TD]
[TD]weight product x [ton][/TD]
[TD]weight other products [ton][/TD]
[TD]carrier[/TD]
[TD]adress 1[/TD]
[TD]adress 2[/TD]
[TD]adress 3 [/TD]
[TD]other data...[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]22[/TD]
[TD]50[/TD]
[TD]1[/TD]
[TD]main street[/TD]
[TD]5th street[/TD]
[TD]parkway avenue[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]258[/TD]
[TD]45[/TD]
[TD]10[/TD]
[TD]2[/TD]
[TD]jordan street[/TD]
[TD]roosevelt square[/TD]
[TD]beale street[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]bourbon street[/TD]
[TD]lombard street[/TD]
[TD]madison ave[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]12[/TD]
[TD]5[/TD]
[TD]3[/TD]
[TD]wall street[/TD]
[TD]michigan ave[/TD]
[TD]broadway[/TD]
[TD]...[/TD]
[/TR]
</tbody>[/TABLE]
Now, I'm looking for a way to type in a specific product code e.g. "1234" in a cell, and automatically specific data columns with that product code, are filtered out and a bunch of calculations is done on them.
Note: why specific data: because I don't need all columns, e.g. the columns with "other data" I don't need.
The calculations I need to do on that filtered out data are pretty simple, those I can do. But the tricky part is that I have to do this on a numerous amount of excel sheets, so I'm looking for a way to be able to make an excel/vba script and use it on another excel file.
Let me clarify; I myself see 2 ways to do it:
1) actually automatically filter out the data and automatically copy the needed data in the other excel sheet where the calculations are done.
2) include the calculations that need to be done in the script, so the copying to another worksheet/excel file is not necessary.
PART II:
In my opinion this will be the more difficult part and I don't know if there even exists a solution to this problem.
In the table mentioned above, there are a few adresses.
Actually I don't need the adresses as an output, but I need the distance between them. They're hubs.
So adress 1 = origin
Adress 2 = destination (from adress 1-> adress 2)
and also origin for the next step (adress 2 -> adress 3)
I tried this via Google Distance Matrix API but manually it's not humanly possible to do this for e.g. 70,000 product lines.
So the output I need is the total distance. Is there a way to implement this in the above part?
My apologies if my question is too lenghty but I wanted to explain the problem thoroughly.
Yours sincerely,
Tristan
PART I:
I have a an enormous amount of data all listed in columns in this shape:
[TABLE="width: 500"]
<tbody>[TR]
[TD]product code[/TD]
[TD]weight product x [ton][/TD]
[TD]weight other products [ton][/TD]
[TD]carrier[/TD]
[TD]adress 1[/TD]
[TD]adress 2[/TD]
[TD]adress 3 [/TD]
[TD]other data...[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]22[/TD]
[TD]50[/TD]
[TD]1[/TD]
[TD]main street[/TD]
[TD]5th street[/TD]
[TD]parkway avenue[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]258[/TD]
[TD]45[/TD]
[TD]10[/TD]
[TD]2[/TD]
[TD]jordan street[/TD]
[TD]roosevelt square[/TD]
[TD]beale street[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]bourbon street[/TD]
[TD]lombard street[/TD]
[TD]madison ave[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD]12[/TD]
[TD]5[/TD]
[TD]3[/TD]
[TD]wall street[/TD]
[TD]michigan ave[/TD]
[TD]broadway[/TD]
[TD]...[/TD]
[/TR]
</tbody>[/TABLE]
Now, I'm looking for a way to type in a specific product code e.g. "1234" in a cell, and automatically specific data columns with that product code, are filtered out and a bunch of calculations is done on them.
Note: why specific data: because I don't need all columns, e.g. the columns with "other data" I don't need.
The calculations I need to do on that filtered out data are pretty simple, those I can do. But the tricky part is that I have to do this on a numerous amount of excel sheets, so I'm looking for a way to be able to make an excel/vba script and use it on another excel file.
Let me clarify; I myself see 2 ways to do it:
1) actually automatically filter out the data and automatically copy the needed data in the other excel sheet where the calculations are done.
2) include the calculations that need to be done in the script, so the copying to another worksheet/excel file is not necessary.
PART II:
In my opinion this will be the more difficult part and I don't know if there even exists a solution to this problem.
In the table mentioned above, there are a few adresses.
Actually I don't need the adresses as an output, but I need the distance between them. They're hubs.
So adress 1 = origin
Adress 2 = destination (from adress 1-> adress 2)
and also origin for the next step (adress 2 -> adress 3)
I tried this via Google Distance Matrix API but manually it's not humanly possible to do this for e.g. 70,000 product lines.
So the output I need is the total distance. Is there a way to implement this in the above part?
My apologies if my question is too lenghty but I wanted to explain the problem thoroughly.
Yours sincerely,
Tristan