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
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Welcome to the board...

Try

=CEILING(A1,"00:30:00"+0)
Cell with formula formatted as desired with date and time.


Hope that helps.
 
Upvote 0
What if the time was

4/12/2010 11:53:00 PM

Rounding the time up would normally force a new date.
 
Upvote 0
Thanks for your rapid response and welcome!

the date and time are in H2: 4/12/2010 5:00:51 AM

Therefore, I typed =CEILING(H2,"00:30:00"+0)

The column should come up as 4/12/2010 5:30:00 AM, but it came up as 30:00.

Hopefully this makes sense! Thanks!
 
Upvote 0
hotpepper, you are correct. So how can I get the time change? I've changed the format so that the time is first, but it does not change the cell.
 
Upvote 0
Format result cell as m/d/yy h:mm:ss AM/PM

Excel Workbook
HI
24/12/2010 5:00:51 AM4/12/10 5:30:00 AM
Sheet1


So, you'd want to keep the same day, just modifying the time?
 
Upvote 0
The only way I can duplicate that is if I format the cell as hh:mm

Make sure you're formatting the cell with the formula as

m/dd/yyyy h:mm:ss
 
Upvote 0
Thank you BOTH! I've done the formula so many times in the last two hours and it was because I did not format my cells correctly. Very frustrating as this is a simple task, but you two walked me through it again.

This is RESOLVED! Wow, why didn't I join Mr. Excel before????

THANK YOU!!:biggrin:
 
Upvote 0
Now I have one more question...

How can I place the exact time log between G2 and H2 in I2?

4:58:41 AM 5:00:51 AM
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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