I've got a fairly large (~230k rows) data set, with ID numbers in Column A. The ID numbers are not unique, a particular ID could appear once in the dataset, or it could appear 20 times. As part of my process, I'm sorting by the ID number, then I need to find the first row number that a particular ID appears on, and the number of times that it appears in the dataset.
Right now, I'm doing that in a For loop, and it's painfully slow.
I've dumped the data into an array, but the Match function doesn't seem to work the same way within the array as it does when I'm just looking at the Range. It's returning all zeros, probably because I don't have the right syntax to look at all rows (rather than just the RowCountVariable row) of the array. The Red text is where I'm going wrong. (And I haven't even tried the Countif line yet, because I can't get the Match, and that's necessary for the other)Please Login or Register to view this content.
Please Login or Register to view this content.
Bookmarks