Kwnstantinos_M
New Member
- Joined
- Jun 12, 2018
- Messages
- 24
Hello
Column A Column B
[TABLE="width: 500"]
<tbody>[TR]
[TD]1/1/2016 12:00:00 am[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]1/1/2016 3:00:00 am[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]1/1/2016 6:00:00 am[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]1/1/2016 9:00:00 am[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]1/1/2016 12:00:00 pm[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]1/1/2016 3:00:00 pm[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]1/1/2016 6:00:00 pm[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]1/1/2016 9:00:00 pm[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]2/1/2016 12:00:00 am[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]....etc[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
****** id="cke_pastebin" style="position: absolute; top: 109px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">[TABLE="width: 500"]
<tbody>[TR]
[TD]yes[/TD]
[/TR]
</tbody>[/TABLE]
I have the above table. I want to find which cells (rows) contain specific hours. To do so I used the if function:
The outcome was not correct. As you can see the outcome was "yes" corresponding to false.. What is the problem?
In addition, I tried to embed the "and" function, in order to select multiple hours, but the excel prompt error message. The formula I tried in cell B2 is:
message: contain many conditions
Column A Column B
[TABLE="width: 500"]
<tbody>[TR]
[TD]1/1/2016 12:00:00 am[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]1/1/2016 3:00:00 am[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]1/1/2016 6:00:00 am[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]1/1/2016 9:00:00 am[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]1/1/2016 12:00:00 pm[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]1/1/2016 3:00:00 pm[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]1/1/2016 6:00:00 pm[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]1/1/2016 9:00:00 pm[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]2/1/2016 12:00:00 am[/TD]
[TD]yes[/TD]
[/TR]
[TR]
[TD]....etc[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
****** id="cke_pastebin" style="position: absolute; top: 109px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">[TABLE="width: 500"]
<tbody>[TR]
[TD]yes[/TD]
[/TR]
</tbody>[/TABLE]
I have the above table. I want to find which cells (rows) contain specific hours. To do so I used the if function:
PHP:
=IF(B2=HOUR("12:00:00");"xx";"yes")
The outcome was not correct. As you can see the outcome was "yes" corresponding to false.. What is the problem?
In addition, I tried to embed the "and" function, in order to select multiple hours, but the excel prompt error message. The formula I tried in cell B2 is:
Code:
=IF(B2=HOUR(AND("12:00:00";"3:00:00");"xx";"yes"))
message: contain many conditions
Last edited: