Math & trig function

SIGN function

Returns 1 for a positive number, 0 for zero and −1 for a negative number.

Available in All versions of Excel, Excel for the web, Excel for Mac

In every Excel versionWorks in Google Sheets

Syntax

SIGN(number)
ArgumentWhat it means
numberRequiredAny number or calculation.

Returns: 1, 0 or −1.

How SIGN works

SIGN tells you the direction of a number without its size. A profit returns 1, a loss −1 and a break-even 0. That compact signal is handy for labels (up/flat/down), for counting how many months improved, and for formulas that must treat positive and negative values symmetrically.

A classic trick is to combine SIGN with ABS: =SIGN(x)*MROUND(ABS(x), 5) rounds both positive and negative numbers the same way, avoiding the #NUM! that MROUND gives for mixed signs. SIGN also works as an index: SIGN(x)+2 gives 1, 2 or 3, ready for CHOOSE.

Examples

1Direction of year-on-year change

D2fx=SIGN(C2-B2)
ABCD
1MonthLast yearThis year
2Jan82007650-1
3Feb91509150
4Mar1040011020

Result: -1

January sales fell, so the sign is −1. February (no change) gives 0, March gives 1.

2Readable trend labels

E4fx=CHOOSE(SIGN(C4-B4)+2, "Down", "Flat", "Up")
ABCDE
1MonthLast yearThis year
2Jan82007650
3Feb91509150
4Mar1040011020Up

Result: Up

SIGN returns 1 for March, +2 makes 3, and CHOOSE picks the third label.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Common errors and how to fix them

ErrorWhy it happensFix
#VALUE!Non-numeric argument.Check the input.

Tips

  • Count improving months: =SUMPRODUCT(--(SIGN(C2:C4-B2:B4)=1)).
  • Combine with ABS to apply one-sided functions to both signs.

Google Sheets

SIGN also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

SIGN in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishFORTEGN
DutchPOS.NEG
FinnishETUMERKKI
FrenchSIGNE
GermanVORZEICHEN
HungarianELŐJEL
ItalianSEGNO
Norwegian (Bokmål)FORTEGN
PolishZNAK.LICZBY
Portuguese (Brazil)SINAL
Portuguese (Portugal)SINAL
RussianЗНАК
SpanishSIGNO
SwedishTECKEN
TurkishİŞARET