Hi Helpers,
I have an index-match formula to program in VBA:
=INDEX(Export!$B$2:$H$1000,MATCH(1,(Export!$B$2=B2)*(Export!$H$2="US"),0),5)
I have two sheets in my excel, Export and Result. On tab Result I have a column (B2) with values which need to match with the same type of values from tab Export. This is the first criteria in the match formula. The second criteria is simple, the country need to be US.
I have 170 000 records on tab Export so I'm trying to find the most effective way to program this in VBA. I'm planning to turn off screen updating, automated calculations and events in the macro code. After browsing on forums the conclusion I came to is that in the VBA I need to use Listobjects to bring the data into the memory, instead of using the data on the Sheets. I was trying to program this but I'm new to VBA and got nowhere.
Can somebody help me with the script which does the work? It would be extremely helpful.
Thanks in advance.
I have an index-match formula to program in VBA:
=INDEX(Export!$B$2:$H$1000,MATCH(1,(Export!$B$2=B2)*(Export!$H$2="US"),0),5)
I have two sheets in my excel, Export and Result. On tab Result I have a column (B2) with values which need to match with the same type of values from tab Export. This is the first criteria in the match formula. The second criteria is simple, the country need to be US.
I have 170 000 records on tab Export so I'm trying to find the most effective way to program this in VBA. I'm planning to turn off screen updating, automated calculations and events in the macro code. After browsing on forums the conclusion I came to is that in the VBA I need to use Listobjects to bring the data into the memory, instead of using the data on the Sheets. I was trying to program this but I'm new to VBA and got nowhere.
Can somebody help me with the script which does the work? It would be extremely helpful.
Thanks in advance.