UMINUS

negates a number · from google sheets · no excel equivalent · sheets: not yet compared

signature

UMINUS(value)

returns: number

argumentrequired
value required

examples

formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.

fx =UMINUS(5) -5

errors

error values observed from the engine — each with a call that produces it.

errorproduced by
#VALUE! =UMINUS("alpha")

related

  • ABS returns absolute value of a number
  • ACOS returns arccosine of a number
  • ACOSH returns inverse hyperbolic cosine
  • ACOT returns the arccotangent of a number
  • ACOTH returns the inverse hyperbolic cotangent
  • ADD adds two numbers — sheets exposes the + operator as a function