D
Dan
Hi guys (and maybe gals?)
I've written a couple routines that allow me to import text data from a file
and place each individual row from the text file into cells(row,1) till the
file ends
i end up with about 30,000+ entries. I've written an algorythm that then
scans the cells and removes the ones that don't fall into a specific
criteria. This alone takes about a minute and a half. From this point i have
to remove all duplicate entries and keep a counter in the adjacent cell.of
the original item.
for example
red apples 1 ===> red apples 2
red apples 1 green apples 1
green apples 1
The way that i have done this is by sorting the list after all the list is
created from the original file and then running throught the list on row at
a time using a while loop when an item is found to sheck for dupes. if the
next item in the list is the same as the current item, it deletes the next
item, ups the surrent items value by one, and checks the next.... and so on.
While this does exactly what i need, it takes it a few mins to complete.
Since i need to do this entire process 7 times in one setting, it's already
going to take at least 10 mins just to clean the junk out the text files. it
would be nice to be able to speed up t least one of these processes.
Anyone have any info on alternatives to this? The information doen't have to
be on a worksheet so I don't mind working with arrays or collections.
Any help would be great. Thanks alot!
Dan Butler
(e-mail address removed)
I've written a couple routines that allow me to import text data from a file
and place each individual row from the text file into cells(row,1) till the
file ends
i end up with about 30,000+ entries. I've written an algorythm that then
scans the cells and removes the ones that don't fall into a specific
criteria. This alone takes about a minute and a half. From this point i have
to remove all duplicate entries and keep a counter in the adjacent cell.of
the original item.
for example
red apples 1 ===> red apples 2
red apples 1 green apples 1
green apples 1
The way that i have done this is by sorting the list after all the list is
created from the original file and then running throught the list on row at
a time using a while loop when an item is found to sheck for dupes. if the
next item in the list is the same as the current item, it deletes the next
item, ups the surrent items value by one, and checks the next.... and so on.
While this does exactly what i need, it takes it a few mins to complete.
Since i need to do this entire process 7 times in one setting, it's already
going to take at least 10 mins just to clean the junk out the text files. it
would be nice to be able to speed up t least one of these processes.
Anyone have any info on alternatives to this? The information doen't have to
be on a worksheet so I don't mind working with arrays or collections.
Any help would be great. Thanks alot!
Dan Butler
(e-mail address removed)
