You need to sign in to do that
Don't have an account?

Time / Value Formula
Hi,
I'm trying to use the below in a text formula to display the text in a field if a case is logged between certain hours (so i can create an assignment rule to push the case to the correct queue)
IF( VALUE(MID(TEXT(CreatedDate), 12, 2)) <= 00 && VALUE(MID(TEXT(CreatedDate), 12, 2)) < 10, "USA", IF( VALUE(MID(TEXT(CreatedDate), 12, 2)) <= 10 && VALUE(MID(TEXT(CreatedDate), 12, 2)) < 22, "Europe", IF( VALUE(MID(TEXT(CreatedDate), 12, 2)) <= 22 && VALUE(MID(TEXT(CreatedDate), 12, 2)) < 24, "Asia", "Europe")) )
At the moment the field is always stating "Asia" and i am not sure why this is
It might help you....
IF(VALUE(MID(TEXT(CreatedDate), 12, 2)) < 10, "USA",
IF( VALUE(MID(TEXT(CreatedDate), 12, 2)) >= 10 && VALUE(MID(TEXT(CreatedDate), 12, 2)) < 22, "Europe",
IF( VALUE(MID(TEXT(CreatedDate), 12, 2)) >= 22 && VALUE(MID(TEXT(CreatedDate), 12, 2)) < 24, "Asia", "Europe"))
)
All Answers
It might help you....
IF(VALUE(MID(TEXT(CreatedDate), 12, 2)) < 10, "USA",
IF( VALUE(MID(TEXT(CreatedDate), 12, 2)) >= 10 && VALUE(MID(TEXT(CreatedDate), 12, 2)) < 22, "Europe",
IF( VALUE(MID(TEXT(CreatedDate), 12, 2)) >= 22 && VALUE(MID(TEXT(CreatedDate), 12, 2)) < 24, "Asia", "Europe"))
)
Thats brilliant. thanks!