steve the excel guy
Board Regular
- Joined
- Aug 28, 2007
- Messages
- 104
Hi all,
I melted my eyes and brain reading through pages in this forum referring to TIME.
In short, I don't want to type Military Time. I tried to create a formula to show PM if the time is greater than 12:00 or AM if it is less as follows:
This returns "AM" no matter what time is placed in K4... even if Military time were entered. So I changed it to a "<" sign. Now, it returns a "PM" no matter what.
I even converted it to:
Same output.
I melted my eyes and brain reading through pages in this forum referring to TIME.
In short, I don't want to type Military Time. I tried to create a formula to show PM if the time is greater than 12:00 or AM if it is less as follows:
Code:
=IF(K4>"12:00"," PM"," AM")
This returns "AM" no matter what time is placed in K4... even if Military time were entered. So I changed it to a "<" sign. Now, it returns a "PM" no matter what.
I even converted it to:
Code:
IF(TEXT(K4>"12:00","hh:mm")," PM"," AM")
Same output.