Question

# Another Timesheet with a Twist

by KareliaTark / December 8, 2014 9:18 PM PST

I need the formula to round up or down based on 7min and 50 secs.
So 8:07:50 rounds up to 8:15:00
and 8:07:49 rounds down to 8:00:00

Can you Help?

Discussion is locked
You are posting a reply to: Another Timesheet with a Twist
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Another Timesheet with a Twist
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.

Collapse -
R: formula
by Kees_B Forum moderator / December 8, 2014 10:05 PM PST

I can imagine a formula with 8 nested if's. Can't you? But wouldn't 7.5 minutes (that's 7 minutes and 30 seconds) make more sense?

Details depend in the programming language you're using, but you should be able to do it in any language you've mastered in a somewhat more than elementary level.

Kees

Collapse -
Excel formula ?
by KareliaTark / December 10, 2014 2:28 AM PST

I working in Excel

=TIME(HOUR(A2),(MOD(ROUND(A2*1440,0),15)>6)*15+(INT(MOD(ROUND(A2*1440,0),60)/15)*15),0)

This formula above was darn close but still doesn't round 7 min and 50 seconds.
The 7:50 rule is payroll not mine so i can't change it.

Any formula ideas?

##### Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

#### CNET FORUMS TOP DISCUSSION

Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?