hey all i have some problem working with if function
for example i have this set of data with "time" Type
[TABLE="width: 100"]
<tbody>[TR]
[TD]6:00[/TD]
[/TR]
[TR]
[TD]15:31[/TD]
[/TR]
[TR]
[TD]22:50[/TD]
[/TR]
[TR]
[TD]01:45[/TD]
[/TR]
</tbody>[/TABLE]
What i want to do is to categorize those time into 3 categories, which is
CASE 1 = for range time 06:00 to 14:00
CASE 2 = for range time 14:00 to 22:00
CASE 3 = for range time 22:00 to 06:00
I've tried working with below function:
=IF(AND(A2>06:00,G2<14:00),"CASE 1",IF(AND(G2>14:00,G2<22:00),"CASE 2","CASE 3")) but that doesn't work.
please help
for example i have this set of data with "time" Type
[TABLE="width: 100"]
<tbody>[TR]
[TD]6:00[/TD]
[/TR]
[TR]
[TD]15:31[/TD]
[/TR]
[TR]
[TD]22:50[/TD]
[/TR]
[TR]
[TD]01:45[/TD]
[/TR]
</tbody>[/TABLE]
What i want to do is to categorize those time into 3 categories, which is
CASE 1 = for range time 06:00 to 14:00
CASE 2 = for range time 14:00 to 22:00
CASE 3 = for range time 22:00 to 06:00
I've tried working with below function:
=IF(AND(A2>06:00,G2<14:00),"CASE 1",IF(AND(G2>14:00,G2<22:00),"CASE 2","CASE 3")) but that doesn't work.
please help