Round to nearest quarter hour?

ShellyB

New Member
Joined
May 10, 2011
Messages
9
First of all, I am not very familiar with Excel lingo. Please go slow :)

I am trying to round to the nearest quarter hour on a payroll worksheet. I am using =MROUND (L2, 0.25). It will round to tenths, but not quarters. And stranglely enough, last week, my =MROUND formula rounded everything to the quarter. I added a password protected the sheet and the document has been viewing/modified in both 2007 and 2010. Could any of these factors coorupted the file? I copied and pasted the information to new worksheet, but I still have the same results.

I have been working on this for days!!! Any assistance you could provide would be greatly appreciated.

~ShellyB
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Welcome to the board...

What is actually in L2, a Time like 15:37:00 (3:37 PM),
or just a number representing hours like 15.68 or something like thiat?
 
Upvote 0
Thank you!

It would be the total hours worked for a week. Example: L2= 38.55 hours, which should transfer to 39.00 hours.
 
Upvote 0
Thank you!

It would be the total hours worked for a week. Example: L2= 38.55 hours, which should transfer to 39.00 hours.

Hang on....

If You're rounding to nearest quarter hour, how does 38.55 round to 39?
Wouldn't that round to 38.5?

Or does 38.55 actually represent 38 hours and 55 minutes...?
 
Upvote 0
@MARKMZZ

I tried the "=MROUND(L2*24,0.25)/24" but it didnt round anything... it just copied over the same exact number from L2.
 
Upvote 0
@JONMO1:

Yes, I am trying to convert actual time and minutes into quarters. Sorry for not clarifying that!!!

So, 38 hours and 55 minutes would be entered into L2 as 38.55, and I need to convert that number into rounding to the nearest quarter hour.
 
Last edited:
Upvote 0
@ JONMO1:

I copy & pasted: "=MROUND(SUBSTITUTE(L2,".",":"),"0:15:0"+0)" and with 38.55 being in L2, the results were 1.625....
 
Upvote 0
ShellyB,

Try this one:

=INT(E2)+IF((E2-INT(E2))>0.45,1,IF((E2-INT(E2))>0.3,0.45,IF((E2-INT(E2))>0.15,0.3,IF((E2-INT(E2))>0,0.15,0))))

Markmzz
<!-- / message --><!-- edit note -->
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,741
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top