JonRowland
Active Member
- Joined
- May 9, 2003
- Messages
- 417
- Office Version
- 365
- Platform
- Windows
This is what I would like to do using VBA. Any help to get me started would be great.
In Col T there is a variable range of different values. The values can change throughout the range and I would like to loop through the range and recorded the first and last time the values in T appear in their seqeunce and to count how many times in the sequence the values appear. Date/Time are in Col A & B accordingly. If there is "-" in T then this should be ignored?
Here is an example
Col A Col B Col T
01/01/1999 19:19:32 999123
01/01/1999 19:21:56 999123
01/01/1999 19:22:08 77777
01/01/1999 19:22:10 77777
01/01/1999 19:22:24 77777
01/01/1999 19:27:13 77777
01/01/1999 19:30:38 77777
01/01/1999 19:32:04 77777
01/01/1999 19:32:59 77777
01/01/1999 19:34:06 77777
01/01/1999 19:34:31 77777
01/01/1999 19:35:27 999123
01/01/1999 19:36:05 999123
01/01/1999 19:36:45 999123
01/01/1999 19:37:42 999123
01/01/1999 19:38:47 999123
01/01/1999 19:41:01 999123
01/01/1999 19:43:57 999123
Output result to new worksheet as something like
ColT Vlu Count First Appears Last Appears
999123 2 19:19:32 01/01/1999 19:21:56 01/01/1999
7777 9 19:22:08 01/01/1999 19:34:31 01/01/1999
999123 7 19:35:27 01/01/1999 19:43:57 01/01/1999
In Col T there is a variable range of different values. The values can change throughout the range and I would like to loop through the range and recorded the first and last time the values in T appear in their seqeunce and to count how many times in the sequence the values appear. Date/Time are in Col A & B accordingly. If there is "-" in T then this should be ignored?
Here is an example
Col A Col B Col T
01/01/1999 19:19:32 999123
01/01/1999 19:21:56 999123
01/01/1999 19:22:08 77777
01/01/1999 19:22:10 77777
01/01/1999 19:22:24 77777
01/01/1999 19:27:13 77777
01/01/1999 19:30:38 77777
01/01/1999 19:32:04 77777
01/01/1999 19:32:59 77777
01/01/1999 19:34:06 77777
01/01/1999 19:34:31 77777
01/01/1999 19:35:27 999123
01/01/1999 19:36:05 999123
01/01/1999 19:36:45 999123
01/01/1999 19:37:42 999123
01/01/1999 19:38:47 999123
01/01/1999 19:41:01 999123
01/01/1999 19:43:57 999123
Output result to new worksheet as something like
ColT Vlu Count First Appears Last Appears
999123 2 19:19:32 01/01/1999 19:21:56 01/01/1999
7777 9 19:22:08 01/01/1999 19:34:31 01/01/1999
999123 7 19:35:27 01/01/1999 19:43:57 01/01/1999