A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

MOD Function or how to convert total minutes to hours and minutes



 
 
Thread Tools Display Modes
  #1  
Old December 22nd, 2004, 05:09 AM
Brad
external usenet poster
 
Posts: n/a
Default MOD Function or how to convert total minutes to hours and minutes

simple question.. maybe
i have a total number of minutes and i want to convert to
hours and minutes.. example 125 total minutes i want it
to be 2 hours and 5 minutes so i figured out how to change
the minutes to hours
i did
= INT(([duration])/60) which gave me 2

how do i do the same with the remaining minutes i have
tried
= MOD (([duration]),60) but cant get it to work

FYI duration is the field that has the total minutes'
thanks you
brad
  #2  
Old December 22nd, 2004, 08:07 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default

Try:
=[Minutes] \ 60 & Format([Minutes] Mod 60, "\:00")

For an explanation, see:
Calculating elapsed time
at:
http://members.iinet.net.au/~allenbrowne/casu-13.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Brad" wrote in message
...
simple question.. maybe
i have a total number of minutes and i want to convert to
hours and minutes.. example 125 total minutes i want it
to be 2 hours and 5 minutes so i figured out how to change
the minutes to hours
i did
= INT(([duration])/60) which gave me 2

how do i do the same with the remaining minutes i have
tried
= MOD (([duration]),60) but cant get it to work

FYI duration is the field that has the total minutes'
thanks you
brad



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert hours into days hours minutes Alex General Discussion 1 September 14th, 2004 06:29 PM
Displaying total minutes in the form of hours and minutes M Worksheet Functions 0 August 2nd, 2004 07:40 PM
Displaying a figure as days, hours and minutes Arvi Laanemets Worksheet Functions 1 January 16th, 2004 02:27 PM
Convert hours and minutes into minutes Jackie Parker Worksheet Functions 3 December 9th, 2003 03:14 PM
Convert 13 hours a 10 minutes to total minutes John Worksheet Functions 2 September 29th, 2003 04:07 PM


All times are GMT +1. The time now is 04:50 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.