pjdodd Posted February 25, 2005 Share Posted February 25, 2005 Hello I have a calculation field that adds together some time fields. (a+b+c=d) At the moment the answer of d is always hours:mins:seconds Im struggling to find a way to round up or down the result to the nearest minute, 10mins, or hour. (Ive tried the Round, Ceiling and Truncate functions without effect). Any ideas? Link to comment Share on other sites More sharing options...
RalphL Posted February 25, 2005 Share Posted February 25, 2005 Try Round ( TestTime / 600 ; 0 ) * 600 Time is number of seconds from midnight. 10 minutes = 600 seconds, so dividing by 600 gives the number of 10 minute parts. The Round gets rid of the fraction. Mutipling by 600 gets it back to time. Link to comment Share on other sites More sharing options...
pjdodd Posted February 25, 2005 Author Share Posted February 25, 2005 Thank you very much Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6606 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now