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)| Argument | What it means | |
|---|---|---|
number | Required | Any 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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Month | Last year | This year | |
| 2 | Jan | 8200 | 7650 | -1 |
| 3 | Feb | 9150 | 9150 | |
| 4 | Mar | 10400 | 11020 |
Result: -1
January sales fell, so the sign is −1. February (no change) gives 0, March gives 1.
2Readable trend labels
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Month | Last year | This year | ||
| 2 | Jan | 8200 | 7650 | ||
| 3 | Feb | 9150 | 9150 | ||
| 4 | Mar | 10400 | 11020 | Up |
Result: Up
SIGN returns 1 for March, +2 makes 3, and CHOOSE picks the third label.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#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.
| Language | Function name |
|---|---|
| Danish | FORTEGN |
| Dutch | POS.NEG |
| Finnish | ETUMERKKI |
| French | SIGNE |
| German | VORZEICHEN |
| Hungarian | ELŐJEL |
| Italian | SEGNO |
| Norwegian (Bokmål) | FORTEGN |
| Polish | ZNAK.LICZBY |
| Portuguese (Brazil) | SINAL |
| Portuguese (Portugal) | SINAL |
| Russian | ЗНАК |
| Spanish | SIGNO |
| Swedish | TECKEN |
| Turkish | İŞARET |