Im having trouble adding AM/PM in my formula in google sheet
This is my formula
=IF(ISDATE(H7),TEXT(NOW(),"h:mm"),"nt")
If you seend the format of NOW()
is h:mm
that gives you time only like 10:00
Now how can I add AM/PM after h:mm
Im having trouble adding AM/PM in my formula in google sheet
This is my formula
=IF(ISDATE(H7),TEXT(NOW(),"h:mm"),"nt")
If you seend the format of NOW()
is h:mm
that gives you time only like 10:00
Now how can I add AM/PM after h:mm
How about this modified formula?
=IF(ISDATE(H7),TEXT(NOW(),"h:mm AM/PM"),"nt")
Official document says as follows.
AM/PM
for displaying hours based on a 12-hour clock and showing AM or PM depending on the time of day.
When it's 2020/07/27 15:00:00
, above formula returns 3:00 PM
.