The S, T and I values are in order ? meaning this always is true ?:
S < T < I ??
Juan Pablo
I mean that if X is not smaller then S then he has to see if X is >= S and smaller then T and when that isnt true then he has to see if X is >=T and smaller then I and if that isnt true then he has to see if X is bigger then I.
So one of them must be true and then there must be an output like I said.
Yes, i understand that. But what i mean is that S is ALWAYS smaller than T, and T is ALWAYS smaller than I.... i'm not asking anything about X.... is just to simplify the formula.
Juan Pablo
Suppose the values for X, S, T, and I are entered
into cells A1, B1, C1 and D1 respectively. Then
the array formula...
{=IF(AND(A1<B1:D1),"-",REPT("+",MAX((A1>=B1:D1)*{1,2,3})))}
...can be used produce your desired results.
Note: This is an array formula which must be
entered using the Control+Shift+Enter key
combination. The outermost braces, {}, are not
entered by you -- they're supplied by Excel in
recognition of a properly entered array formula.
Suppose the values for X, S, T, and I are entered
into cells A1, B1, C1 and D1 respectively. Then
the array formula...
{=IF(AND(A1 < B1:D1),"-",REPT("+",MAX((A1 >= B1:D1)*{1,2,3})))}
...can be used produce your desired results.
Note: This is an array formula which must be
entered using the Control+Shift+Enter key
combination. The outermost braces, {}, are not
entered by you -- they're supplied by Excel in
recognition of a properly entered array formula.