Cell always AM or always PM

hviking

Board Regular
Joined
Mar 31, 2002
Messages
59
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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Juan Pablo González

MrExcel MVP
Joined
Feb 8, 2002
Messages
11,959
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.
 

persefone

New Member
Joined
Sep 2, 2002
Messages
3
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.
 

hviking

Board Regular
Joined
Mar 31, 2002
Messages
59
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.
 

Forum statistics

Threads
1,144,770
Messages
5,726,187
Members
422,661
Latest member
foxleinlady

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