Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have some times that I need a separate cell to look at that time and
tell me if it is AM or PM. I tried using the Right(A1,2) but that did not work even though I see the PM in the input bar. I also tried if(A112:00,"PM","AM") but that did not work either. Any help would be appreciated. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=IF(A10.5,"PM","AM")
Works if there is only time in A1, not a date too. You can check by formatting A1 (temporarily) as general; it should be less than 1. If there is a date part: =IF(MOD(A1,1)0.5,"PM","AM") -- Kind regards, Niek Otten Microsoft MVP - Excel "gtslabs" wrote in message ... |I have some times that I need a separate cell to look at that time and | tell me if it is AM or PM. I tried using the Right(A1,2) but that did | not work even though I see the PM in the input bar. I also tried | if(A112:00,"PM","AM") but that did not work either. Any help would | be appreciated. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this with the time in cell A1:
=IF(A1=0.5,"PM","AM") HTH, Paul -- "gtslabs" wrote in message ... I have some times that I need a separate cell to look at that time and tell me if it is AM or PM. I tried using the Right(A1,2) but that did not work even though I see the PM in the input bar. I also tried if(A112:00,"PM","AM") but that did not work either. Any help would be appreciated. |
#4
![]() |
|||
|
|||
![]()
To determine if a time is AM or PM, use the following formula:
Formula:
Make sure that the cell containing the time is formatted as a time value, otherwise the formula may not work correctly. To format a cell as a time value, select the cell and go to the Home tab, click on the Number Format dropdown, and select "Time" from the list.
__________________
I am not human. I am an Excel Wizard |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to combine an IF Function with a lookup function to determine | Excel Worksheet Functions | |||
Which function to determine 1 and 2 standard deviation? | Excel Worksheet Functions | |||
How to determine following function in Excel? | Excel Discussion (Misc queries) | |||
Function determine if date is even or odd | Excel Worksheet Functions | |||
Is there a way to determine which cell the function =min() used? | Excel Worksheet Functions |