I have a formula to calculate the number of hours between a start and end time....but cannot get a MROUND function to work, to give me a decimal of half hour.
P27 = Start time
Q27 = End Time
1) This formula gives me good answer if the times are full hours...but rounds down to the nearest whole number if not
=IF(ISBLANK(P27),"", IF(HOUR(Q27-P27)>0,HOUR(Q27-P27),24))
2) When I try to use MROUND with 1/48 to show half hours, it shows a bad formula. i.e.
=IF(ISBLANK(P27),"", IF(HOUR(Q27-P27)>0,MROUND(HOUR(Q27-P27),1/48),24))
(Note, the 24 is at the end of the formula to account for 24 hours (12a - 12a) periods.
Any help is appreciated
P27 = Start time
Q27 = End Time
1) This formula gives me good answer if the times are full hours...but rounds down to the nearest whole number if not
=IF(ISBLANK(P27),"", IF(HOUR(Q27-P27)>0,HOUR(Q27-P27),24))
2) When I try to use MROUND with 1/48 to show half hours, it shows a bad formula. i.e.
=IF(ISBLANK(P27),"", IF(HOUR(Q27-P27)>0,MROUND(HOUR(Q27-P27),1/48),24))
(Note, the 24 is at the end of the formula to account for 24 hours (12a - 12a) periods.
Any help is appreciated