always_confused
Board Regular
- Joined
- Feb 19, 2021
- Messages
- 68
- Office Version
- 2016
- Platform
- Windows
Hello,
I have a spreadsheet with error codes (column A) and timestamps (column B) . Every time there is an error, it is recorded and time stamped. I would like to write a macro that writes in another column (column D) the frequency of each error. I have filled column C with the distinct error codes possible, and I would like to go through column A and count the occurrence of each code in column C.
However, there are about 1 000 error codes possible and about 75 000 timestamped values, so I would like to avoid going through all 75 000 values for every one of the 1 000 codes possible. I there a better way to do this?
Thanks
I have a spreadsheet with error codes (column A) and timestamps (column B) . Every time there is an error, it is recorded and time stamped. I would like to write a macro that writes in another column (column D) the frequency of each error. I have filled column C with the distinct error codes possible, and I would like to go through column A and count the occurrence of each code in column C.
However, there are about 1 000 error codes possible and about 75 000 timestamped values, so I would like to avoid going through all 75 000 values for every one of the 1 000 codes possible. I there a better way to do this?
Thanks