SIGN

Get the sign of a number.

SIGN

Summary 

The Excel SIGN function returns the sign of a number as +1, -1 or 0. If number is positive, SIGN returns 1. If number is negative, sign returns -1. If number is zero, SIGN returns 0.

Purpose 

Get the sign of a number.

Return value 

One if positive. Negative one if negative. Zero if zero.

Syntax 

=SIGN (number)

Arguments 

  Number - The number to get the sign of.

Usage notes 

If the number is in the range (-∞,0) SIGN(number) will return -1.

If the number is equal to 0 SIGN(number) will return 0.

If the number is in the range (0,∞)(number) SIGN will return 1.

0 votes. 0 / 5