...
...
B=INCASE(A,LT,5,THEN,1,ELSEIF,A,GT,9,THEN,3,ELSE,2)
is equivalent to the algorithm:
If A<5 Then
B=1
ElseIf A>9 Then
B=3
Else
B=2
EndIf
A number of ELSEIF, LogExp can be provided in sequence in INCASE() to simulate a Select Case function.
...