WhiteRaven76
New Member
- Joined
- Jun 27, 2022
- Messages
- 10
- Office Version
- 365
- Platform
- Windows
I have been trying to figure out how to create some VBA code that will convert time (hh:mm) to decimal (hours.units) using a specific time conversion chart.
I have been failing horribly at trying to make some VBA code. So far I have had success by trying to take the time from column AB (starting in AB2) and separate the Hours into column AD and Minutes into column AE. I have been able to separate the time using =LEFT and =RIGHT.
The next part is evading me. I need to take the minutes from column AE2 and have it scan AF2 through AF61. When it finds a match, it takes the data from the adjacent cell in column AG and merges that with the hours from column AD2 and puts that data into column AH2. Then it continues on to AE3 and AE4 until it reaches the end of column AE.
Every attempt I have made so far has failed horribly and I deleted it out of frustration. Any help or advice would be extremely appreciated!
I have been failing horribly at trying to make some VBA code. So far I have had success by trying to take the time from column AB (starting in AB2) and separate the Hours into column AD and Minutes into column AE. I have been able to separate the time using =LEFT and =RIGHT.
The next part is evading me. I need to take the minutes from column AE2 and have it scan AF2 through AF61. When it finds a match, it takes the data from the adjacent cell in column AG and merges that with the hours from column AD2 and puts that data into column AH2. Then it continues on to AE3 and AE4 until it reaches the end of column AE.
Every attempt I have made so far has failed horribly and I deleted it out of frustration. Any help or advice would be extremely appreciated!