cortexnotion
Board Regular
- Joined
- Jan 22, 2020
- Messages
- 150
- Office Version
- 2013
- Platform
- Windows
Hi there
I have a spreadsheet with 500k rows and 10 columns. Column 10 contains a set of co-ordinates. For each row in column 11 I need to count the number of occurrences the value in column 10 has appeared in the whole of Column 10.
In VBA I have put the sheet range into an array and used the following code line in to calculate the number of occurrences. Unfortunately it runs on a small data set but not the sheet of my size without hanging. Is there an alternative at all?
Many thanks
I have a spreadsheet with 500k rows and 10 columns. Column 10 contains a set of co-ordinates. For each row in column 11 I need to count the number of occurrences the value in column 10 has appeared in the whole of Column 10.
In VBA I have put the sheet range into an array and used the following code line in to calculate the number of occurrences. Unfortunately it runs on a small data set but not the sheet of my size without hanging. Is there an alternative at all?
VBA Code:
(Len(col10value) - Len(Replace(col10value, col10range, ""))) / Len(col10range)
Many thanks