The Excel SIGN function returns the arithmetic sign (+1, -1 or 0) of a supplied number. I.e. if the number is positive, the Sign function returns +1, if the number is negative, the function returns -1 and if the number is 0 (zero), the function returns 0.
The syntax of the Sign function is:
where the number argument is the numeric value that you want the arithmetic sign of.
The following spreadshee shows simple examples of the Excel Sign function.
Formulas:
|
Results:
|
Further details of the Excel Sign function are provided on the Microsoft Office website.
If you get an error from the Excel Sign function, this is likely to be the #VALUE! error:
#VALUE! | - | Occurs if the supplied number argument is non-numeric. |