Av8tordude
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 1,075
- Office Version
- 2019
- Platform
- Windows
I'm looking up the city UTC time zone. Some cities have negative numbers versus positive numbers. When it is found, I trying to convert the number into a time format (i.e. -5.5 = -5:30). However, when a number is negative and I convert it into a time format, the number is not being displayed a negative time format (i.e. -5:30). The code I'm using is...
Also, I'm trying to use the UTC time zone number to either add or subtract the time being used. (i.e. 13:00 + (-5:30 UTC) = 07:30). And this is were I'm frustrated to the point of seeking help. haha
So I'm asking... HEEEELPPPP
Thank you kindly for expert guidance
Code:
TimeValue(Format(Application.WorksheetFunction.VLookup(cboDep, Range("CD9:CE149"), 2, False) / 24, "hh:mm"))
Also, I'm trying to use the UTC time zone number to either add or subtract the time being used. (i.e. 13:00 + (-5:30 UTC) = 07:30). And this is were I'm frustrated to the point of seeking help. haha
Code:
TimeValue(txtDepTm) + TimeValue(Format(Application.WorksheetFunction.VLookup(cboDep, Range("CD9:CE149"), 2, False) / 24, "hh:mm"))
So I'm asking... HEEEELPPPP
Thank you kindly for expert guidance