Cell always AM or always PM

hviking

Board Regular
Joined
Mar 31, 2002
Messages
61
How could I make a cell always be AM and another cell always be PM.

I.e. if I enter 4:00 in cell a2, it would always be 4:00 am, and if I enter 4:00 in a3, it would always be 4:00 pm

Thanks;
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I think you would have to use a macro, using the Change event of the worksheet, to add 0.5 (Half a day) to the cell you decide to always be PM. AM wouldn't be a problem.
 
Upvote 0
Just use the 24 hour clock, making sure your cells are formatted to display the time as 1:30. If you wanted to write 1:30 PM, you'd just type 13:30- the cell would automatically display 1:30 PM. Typing in 1:30 would show up as 1:30 AM.
 
Upvote 0
Thanks folks. I tried adding .5, and when combinding it with a if statement, it worked like a charm. I wanted to use the 24 hour setup, but the people who will be filling this out couldn't understand how to do it.

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,428
Members
449,083
Latest member
Ava19

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