Formating Time - Keeps on Adding Date to Value

cccontour

New Member
Joined
Oct 15, 2006
Messages
8
Using the Data Validation Function in Excel, I created a list for Time. Cell References A1:A5 and are set to the format of "h:mm AM/PM"

Cell Formula Value
A1 11:57 PM 11:57 PM
A2 =A1+1/1440 11:58 PM
A3 =A2+1/1440 11:59 PM
A4 =A3+1/1440 12:00 AM
A5 =A4+1/1440 12:01 AM

Problem Scope
Selecting from the drop down list Cells A1 to A3 is just fine. Value displays as "h:mm AM/PM". However, Cells A4 & A5 automatically formats to "DD/MM/YEAR h:mm AM/PM". This is causing my time calculations to go way off. Can I can force the Cells A4 & A5 to be "h:mm AM/PM"?

Thanks!!
 

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.
Hi Cccontour

Do you actually have the cells formatted as "h:mm AM/PM" thru regular cell formatting, because I can't replicate what you are seeing (ie it stays h:mm AM/PM even after 12am)?
 
Upvote 0
That's because you have gone into the next day. Your time calculations should be fine. If you don't add a day you may get a negative time when subtracting, and Excel won't like it.
 
Upvote 0
Thank you! I do however need to make it not increase by a day though. Hopefully I can figure this one out :)
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,580
Members
449,039
Latest member
Arbind kumar

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