Formula Functions > Functions R to S > SIGN |
This function returns the sign of a number or expression.
SIGN(cellreference)
SIGN(value)
SIGN(expression)
Specify a cell reference, a numeric or text value, or an expression for the argument.
Returns 1 if the number is positive, 0 if the number is 0, and –1 if the number is negative.
Accepts numeric data. Returns numeric data.
SIGN(B3)
SIGN(R1C2)
SIGN(-5) gives the result -1
SIGN(15-8) gives the result 1
This function is available in product version 1.0 or later.
ABS | Math and Trigonometry Functions