Roundup time formula

deafpride

New Member
Joined
Jun 2, 2011
Messages
10
I'm trying to roundup my times by half hour, but I cannot get past the date issue.

I want the same date, but times are rounded by half hour.

4/12/2010 5:00:51 AM
 
Try

=H2-G2

If the time spans over midnight...
11:30 PM to 1:15 AM

=MOD(H2-G2,1)
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
I did try H2-G2.

H2 and G2 have the dates in the cells, so the result I got was: 1/1/04 12:02 AM

Which means it's again messed up because of the dates I have in H2 and G2 before the time log.
 
Upvote 0
So you want the difference in time regardless of the dates?

1/1/2000 5:00:00 AM and 5/15/2011 11:05:00 AM
The result you want is 6:05:00


Try the other formula I posted using MOD
 
Upvote 0
That's correct, I just need the time log and I'll affiliate it with the dates through pivottable.

I tried the other option, too. Same result.

Thanks for your help and I'm sorry for the delay of response as I had other responsibilities.
 
Upvote 0
Excel Workbook
ABCD
11/1/2000 5:005/15/2011 11:056:05
Sheet1


Format result cell as h:mm
 
Upvote 0
Wow, it looks like once AGAIN the issue was formatting the cell correctly. It worked, THANK YOU!

How can I give you both a positive response?
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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