Darren_workforce
Board Regular
- Joined
- Oct 13, 2022
- Messages
- 146
- Office Version
- 365
- Platform
- Windows
Hello,
I wasn't sure if this can be done with a date/time cell like below. That's how the raw data is generated and I was hoping to work with it. What I was hoping to do was scan column C, locate the first instance of each date within that column affiliated to a status of "available" in Column B, and then hide all remaining rows so that just the one row is visible. I understand that will require VBA but I was struggling on figuring out the formula needed in order to even start building a macro.
I know my dummy data is lacking but row 2 does have the first instance of 9/1/2024, however it's related column B cell displays "unavailable" so that wouldn't count. Row 3 is the first instance of 9/3/2024 and has Available in column B and so it would stay visible and all remaining rows containing 9/3/2024 would be hidden. And then the same would be done for 9/4/2024 and then all remaining dates within the range.
Can this be done or would I need to separate out the date and the time into 2 cells first?
I wasn't sure if this can be done with a date/time cell like below. That's how the raw data is generated and I was hoping to work with it. What I was hoping to do was scan column C, locate the first instance of each date within that column affiliated to a status of "available" in Column B, and then hide all remaining rows so that just the one row is visible. I understand that will require VBA but I was struggling on figuring out the formula needed in order to even start building a macro.
I know my dummy data is lacking but row 2 does have the first instance of 9/1/2024, however it's related column B cell displays "unavailable" so that wouldn't count. Row 3 is the first instance of 9/3/2024 and has Available in column B and so it would stay visible and all remaining rows containing 9/3/2024 would be hidden. And then the same would be done for 9/4/2024 and then all remaining dates within the range.
Can this be done or would I need to separate out the date and the time into 2 cells first?
User Name | Status | Start Time | End Time |
User Name | Offline | 9/1/2024 12:53 | 9/3/2024 9:43 |
User Name | Available | 9/3/2024 9:43 | 9/3/2024 9:55 |
User Name | On a Call | 9/3/2024 9:55 | 9/3/2024 10:09 |
User Name | After Call Work | 9/3/2024 10:09 | 9/3/2024 10:11 |
User Name | Available | 9/3/2024 10:11 | 9/3/2024 10:11 |
User Name | After Call Work | 9/4/2024 12:17 | 9/4/2024 12:19 |
User Name | Break | 9/4/2024 12:19 | 9/4/2024 12:34 |
User Name | Available | 9/4/2024 12:34 | 9/4/2024 12:34 |
User Name | Available | 9/4/2024 18:31 | 9/4/2024 18:34 |
User Name | Offline | 9/4/2024 18:34 | 9/5/2024 9:45 |
User Name | Available | 9/5/2024 9:45 | 9/5/2024 9:54 |
User Name | After Call Work | 9/9/2024 15:20 | 9/9/2024 15:22 |
User Name | After Call Work | 9/9/2024 15:22 | 9/9/2024 15:23 |
User Name | Available | 9/9/2024 15:22 | 9/9/2024 15:22 |
User Name | On a Call | 9/9/2024 15:23 | 9/9/2024 15:25 |
User Name | After Call Work | 9/9/2024 15:25 | 9/9/2024 15:26 |
User Name | On a Call | 9/17/2024 12:01 | 9/17/2024 12:07 |
User Name | After Call Work | 9/17/2024 12:07 | 9/17/2024 12:09 |
User Name | Prjct-Email | 9/17/2024 12:09 | 9/17/2024 12:09 |
User Name | After Call Work | 9/17/2024 12:09 | 9/17/2024 12:09 |
User Name | Prjct-Email | 9/17/2024 12:09 | 9/17/2024 12:19 |
User Name | Available | 9/17/2024 12:19 | 9/17/2024 12:21 |
User Name | Available | 9/19/2024 13:49 | 9/19/2024 13:49 |
User Name | On a Call | 9/19/2024 13:49 | 9/19/2024 13:52 |
User Name | After Call Work | 9/19/2024 13:52 | 9/19/2024 13:52 |
User Name | On a Call | 9/25/2024 11:20 | 9/25/2024 11:32 |
User Name | After Call Work | 9/25/2024 11:32 | 9/25/2024 11:32 |
User Name | Prjct-Email | 9/25/2024 11:32 | 9/25/2024 11:44 |
User Name | Available | 9/27/2024 13:07 | 9/27/2024 13:07 |
User Name | After Call Work | 9/27/2024 13:07 | 9/27/2024 13:07 |
User Name | On a Call | 10/1/2024 12:53 | 10/1/2024 13:08 |
User Name | After Call Work | 10/1/2024 13:08 | 10/1/2024 13:08 |