Hi,
I have a large list in excel that contains diesel and petrol cars.
I have to verify if there is an alternative petrol car for each available diesel car.
Therefore I first filtered the basic list with all vehicles and made 2 tabs (1 with diesel and another with petrol).
afterwards I take the first diesel car and look for the alternative in petrol. Because there are multiple fuel versions I want to select the fuel version that is the nearest to the diesel variant.
Therefore I copy the matching petrol cars and put them in another tab(workfile) by ordering them descending. Then I look for an equivalent horsepower of diesel horsepower - 5.
The resulting lease price I copy and put it next to the diesel car.
Is there a more efficient way by working with a collection so that I don't have to copy the corresponding petrol cars to a new tab?
this is slowing down the macro reaction time. Because each time I filter the petrol list copy the results in a new tab and afterwards I remove the filter on the petrol list and empty the worksheet file. So I'm looking for a more efficient solution here.
In java you can work for example with collections/Array could this be a solution? and what is the alternative for VBA?
thanks!
I have a large list in excel that contains diesel and petrol cars.
I have to verify if there is an alternative petrol car for each available diesel car.
Therefore I first filtered the basic list with all vehicles and made 2 tabs (1 with diesel and another with petrol).
afterwards I take the first diesel car and look for the alternative in petrol. Because there are multiple fuel versions I want to select the fuel version that is the nearest to the diesel variant.
Therefore I copy the matching petrol cars and put them in another tab(workfile) by ordering them descending. Then I look for an equivalent horsepower of diesel horsepower - 5.
The resulting lease price I copy and put it next to the diesel car.
Is there a more efficient way by working with a collection so that I don't have to copy the corresponding petrol cars to a new tab?
this is slowing down the macro reaction time. Because each time I filter the petrol list copy the results in a new tab and afterwards I remove the filter on the petrol list and empty the worksheet file. So I'm looking for a more efficient solution here.
In java you can work for example with collections/Array could this be a solution? and what is the alternative for VBA?
thanks!