NessPJ
Active Member
- Joined
- May 10, 2011
- Messages
- 431
- Office Version
- 365
Hi all,
I'm looking for a piece of code that will count the number of specified occurances in one of my sheets.
I hope the following explanation will suffice.....
My sheet contains a lot of data like:
Column A: Date
Column B: Time
Column C: Error code
Column D: A formula to show a "1" if a specific error code occurs between 0:00 and 08:00u.
Column E: A formula to show a "1" if a specific error code occurs between 8:01 and 16:00u.
Now, what i want to do is...count the number of 1's in column D and E for a specific Date.
This date is retreived from another cell in the workbook.
I'm looking for a piece of code that will count the number of specified occurances in one of my sheets.
I hope the following explanation will suffice.....
My sheet contains a lot of data like:
Column A: Date
Column B: Time
Column C: Error code
Column D: A formula to show a "1" if a specific error code occurs between 0:00 and 08:00u.
Column E: A formula to show a "1" if a specific error code occurs between 8:01 and 16:00u.
Now, what i want to do is...count the number of 1's in column D and E for a specific Date.
This date is retreived from another cell in the workbook.