SQRT
Returns the positive square root of a number.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=SQRT(number)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
number | number | Required | — |
Remarks
- Input must be greater than or equal to zero.
Error cases
- Negative input returns
#NUM!.
Examples
Evaluate the square-root calculation on a positive number.
Formula =SQRT(4)
Expected result 2
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Use a fractional input that does not produce an integer result.
Formula =SQRT(2.5)
Expected result 1.58113883008419
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Evaluate the calculation at its lower boundary.
Formula =SQRT(0)
Expected result 0
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
A negative input has no real square root.
Formula =SQRT(-1)
Expected result #NUM!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Square root of a perfect square
Formula =SQRT(144)
Expected result 12
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Square root from a reference
Formula =SQRT(A1)
| A | |
|---|---|
| 1 | 2 |
Expected result 1.4142135623731
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
When does SQRT return #NUM!?
It returns #NUM! for negative inputs because real square roots are undefined there.