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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
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)?
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
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.
 

cccontour

New Member
Joined
Oct 15, 2006
Messages
8
Thank you! I do however need to make it not increase by a day though. Hopefully I can figure this one out :)
 

Forum statistics

Threads
1,141,095
Messages
5,704,311
Members
421,338
Latest member
Pepess

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
Top