How do I round minutes to the nearest 15 minute increment?

D

DJL

On timesheets I need to round up or down and the formula in InfoPath rounds
to the nearest integer or hour and I need it to be in 15 minute increments.
 
F

Franck Dauché

Hi,

This a math question, right?
n is a number in minutes from 1 to 59, t gives you 15; 30; 45; 60
t = ((n / 15) + ((n % 15)/15 + 1))*15;

Regards,

Franck Dauché
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top