Kwnstantinos_M
New Member
- Joined
- Jun 12, 2018
- Messages
- 24
Hello
Column A Column B
<tbody>
</tbody>
****** id="cke_pastebin" style="position: absolute; top: 109px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
<tbody>
</tbody>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
1/1/2016 12:00:00 am | yes |
1/1/2016 3:00:00 am | yes |
1/1/2016 6:00:00 am | yes |
1/1/2016 9:00:00 am | yes |
1/1/2016 12:00:00 pm | yes |
1/1/2016 3:00:00 pm | yes |
1/1/2016 6:00:00 pm | yes |
1/1/2016 9:00:00 pm | yes |
2/1/2016 12:00:00 am | yes |
....etc |
<tbody>
</tbody>
****** id="cke_pastebin" style="position: absolute; top: 109px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
yes |
<tbody>
</tbody>
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: