ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   iwhich funvtion to use : in conversion of date and hour to day and (https://www.excelbanter.com/excel-worksheet-functions/176507-re-iwhich-funvtion-use-conversion-date-hour-day.html)

Teethless mama

iwhich funvtion to use : in conversion of date and hour to day and
 
=IF(A1=TIME(18,,),"night","day")

"kbee" wrote:

I need to convert the data from a cell that contains date and time to a
different cell that will give a result of day /night, which functions should
I use and what will be their syntax?
if the hours i refere to as day are 7:00AM-18:00PM, and night 18:00Pm-07:00AM
thank you


Tyro[_2_]

iwhich funvtion to use : in conversion of date and hour to day and
 
It's interesting to note that with your formula, 12:01:00 AM returns Day.
Where I live in the USA, it is dark at that time. <g

Tyro

"Teethless mama" wrote in message
...
=IF(A1=TIME(18,,),"night","day")

"kbee" wrote:

I need to convert the data from a cell that contains date and time to a
different cell that will give a result of day /night, which functions
should
I use and what will be their syntax?
if the hours i refere to as day are 7:00AM-18:00PM, and night
18:00Pm-07:00AM
thank you





All times are GMT +1. The time now is 03:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com