robertgama
Board Regular
- Joined
- May 4, 2011
- Messages
- 189
I have a large data set with many complex formulas, and I started running out of resources getting errors.
I've created a VBA procedure that will import a new data file, set up the appropriate formatting, named ranges, etc. The rest of the spreadsheet updates automatically using many VLOOKUP, SUMIFS, INDEX/MATCH, SUMPRODUCT, and other array formulas.
I was going to use formulas to extract the unique values so the end user doesn't have to do an advanced filter, copy unique values to a new location but I ran out of memory before the formula could execute once so I realized I'll have to do this with VBA also.
My question is then what is the most efficient way to copy unique values to a new location?
I'm assuming that using advanced filters within VBA is probably the most efficient, but I was hoping someone could confirm that for me and perhaps post a code example.
There could be ~50,000 rows of data, and about 10,000 unique values that then have several columns of complex formulas.
Perhaps general suggestions for other ways to improve the efficiency would be appreciated also.
Thanks a bunch,
Rob.
I've created a VBA procedure that will import a new data file, set up the appropriate formatting, named ranges, etc. The rest of the spreadsheet updates automatically using many VLOOKUP, SUMIFS, INDEX/MATCH, SUMPRODUCT, and other array formulas.
I was going to use formulas to extract the unique values so the end user doesn't have to do an advanced filter, copy unique values to a new location but I ran out of memory before the formula could execute once so I realized I'll have to do this with VBA also.
My question is then what is the most efficient way to copy unique values to a new location?
I'm assuming that using advanced filters within VBA is probably the most efficient, but I was hoping someone could confirm that for me and perhaps post a code example.
There could be ~50,000 rows of data, and about 10,000 unique values that then have several columns of complex formulas.
Perhaps general suggestions for other ways to improve the efficiency would be appreciated also.
Thanks a bunch,
Rob.