How to convert field with decimal time e.g 11.5 to 11h:30m in Access

Course

Board Regular
Joined
Aug 7, 2014
Messages
144
How do I convert a number field which stores time as decimals(e.g 11.5 means 11hrs 30mins) to a date/time field so that it appears like this 11h:30m.

Thank you
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Row\Col
A​
B​
C​
1​
11.5​
11h:30m​
B1: =A1/24
2​
Format of B1: h\h:mm\m
 
Upvote 0
Thanks shg, I forgot to mention I also need to convert negative decimal time e.g -2.5 to -2h:30m.

the reason is Im logging UTC timezones and some of them have UTC -2.5 like St Johns in Canada.

Thanks for getting back to me
 
Upvote 0
Doh -- Joe4 just pointed out that this is an Access forum, of which I know nothing -- sorry.
 
Upvote 0
I used a calculated field to do what you advised e.g [UTC]/24 which worked the same way. UTC is the field that contains the decimal times.

the problem is it displays the negative times as positive.
 
Upvote 0

Forum statistics

Threads
1,221,831
Messages
6,162,248
Members
451,756
Latest member
tommyw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top