=UMINUS(value)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
| Parameter | Required | Description |
|---|---|---|
| value | Yes | The number whose sign should be reversed. Positive becomes negative and negative becomes positive. |
UMINUS reverses the sign of a number. =UMINUS(5) returns −5 and =UMINUS(-5) returns 5. It is the function form of the unary minus — the minus sign placed in front of a single value, as in =-A2.
- OperatorThe minus sign has two meanings in a formula:
| Usage | Example | Function |
|---|---|---|
| Unary minus (one value, negate it) | =-A2 | =UMINUS(A2) |
| Binary minus (two values, subtract) | =A2-B2 | =MINUS(A2, B2) |
UMINUS is the first of these. "Unary" means it acts on a single operand, the same way UPLUS (leading +) and UNARY_PERCENT (trailing %) do.
In Google Sheets, unary minus binds more tightly than exponentiation, so =-3^2 is evaluated as (-3)^2 and returns 9. If you want −9, write =-(3^2) or =UMINUS(POW(3, 2)). Using the function makes the order of operations explicit.
=UMINUS(250)Returns −250.
=UMINUS(B2)If B2 is −80, returns 80.
=ARRAYFORMULA(UMINUS(C2:C200))Turns a column of positive costs into negative values so they can be combined with income in one cash-flow column.
=UMINUS(UMINUS(D2>100))The equivalent of --(D2>100): two negations convert TRUE to 1 and FALSE to 0. This is the classic double-unary trick used inside SUMPRODUCT.
UMINUS(x), -x and x*-1 are all equivalent.ABS(x) always returns a positive number, and -ABS(x) always returns a negative one. Use these when you need a specific sign regardless of input; use UMINUS when you need to flip whatever sign it has.-x^2 squares the negative. Use parentheses or the function form.-ABS(x).UMINUS(x) can be clearer than a lone minus sign that's easy to overlook.--condition is the common shorthand; N(condition) is another option.=ARRAYFORMULA(UMINUS(C2:C200)) and paste the results back as values if needed.MINUS, UPLUS, UNARY_PERCENT, ABS, SIGN, and N.
A finance analyst combines income and expense exports into a single cash-flow column. The expense system lists costs as positive numbers, so =UMINUS(C2) converts each one to a negative, letting a simple SUM produce net cash flow.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.