(Sorry, the search was down for maintenance, so I didn't get to search thoroughly...)
I have several rows (not many, just 300 or so) of two columns of data in Excel. One is an error number, the other is a date.
What I need to find is the number of occurrences where two numbers fall under the same date. (And I need to do this for several number/date combinations.)
First of all, I am *super* rusty at VBA and Arrays - so my apologies.
As an example, I need to find how many times error number 200 and error number 201 happen on the same date.
The data looks like this:
Column A Column F
200 1/1/07
70 1/1/07
110 1/1/07
201 1/1/07
201 1/1/07
200 1/1/07
200 1/1/07
200 2/15/07
200 2/15/07
200 2/15/07
201 2/19/07
200 2/19/07
19 2/19/07
So for this data set, the # of occurrences for the 200/201 combo is:
1/7/07 = 2 occurrences
2/15/07 = 0
2/19/07 = 1
I know how to display it on the sheet using a macro (once the number of occurrences are found).
What I (think I) would like to do is put the entire data set into a dynamic array, and count the number of occurrences of various combinations for each date.
I started out using subroutines, but the code turned into several hundred lines (I have 27 combinations to find) and It was a mess.
Any help would be appreciated. I got volunteered to work on this over the weekend. Yay. (I have to have something before Monday.)
Thanks in advance to all you geniuses out there...
Danhauer
I have several rows (not many, just 300 or so) of two columns of data in Excel. One is an error number, the other is a date.
What I need to find is the number of occurrences where two numbers fall under the same date. (And I need to do this for several number/date combinations.)
First of all, I am *super* rusty at VBA and Arrays - so my apologies.
As an example, I need to find how many times error number 200 and error number 201 happen on the same date.
The data looks like this:
Column A Column F
200 1/1/07
70 1/1/07
110 1/1/07
201 1/1/07
201 1/1/07
200 1/1/07
200 1/1/07
200 2/15/07
200 2/15/07
200 2/15/07
201 2/19/07
200 2/19/07
19 2/19/07
So for this data set, the # of occurrences for the 200/201 combo is:
1/7/07 = 2 occurrences
2/15/07 = 0
2/19/07 = 1
I know how to display it on the sheet using a macro (once the number of occurrences are found).
What I (think I) would like to do is put the entire data set into a dynamic array, and count the number of occurrences of various combinations for each date.
I started out using subroutines, but the code turned into several hundred lines (I have 27 combinations to find) and It was a mess.
Any help would be appreciated. I got volunteered to work on this over the weekend. Yay. (I have to have something before Monday.)
Thanks in advance to all you geniuses out there...
Danhauer