HolidayBuyer's Guide

Office & Productivity Software forum

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
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
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.

All Answers

Collapse -
Answer
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 -
Answer
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

The Samsung RF23M8090SG

One of the best French door fridges we've tested

A good-looking fridge with useful features like an auto-filling water pitcher and a temperature-adjustable "FlexZone" drawer. It was a near-flawless performer in our cooling tests.