What you will fix

You will reproduce #NUM! in D2 because C2-B2 equals -10, diagnose the invalid negative input passed to SQRT, then correct the subtraction order in E2 and verify the result is approximately 3.1623.

Learning objectives

Open the practice workbook

HANDS-ON PRACTICE

Practice in your own copy

Make your own Google Sheets copy with the same data, formulas, formatting, filter and frozen header. The original remains unchanged.

Make a Google Sheets copy (access required) ↗View original

Sign in to Google. If the original is not publicly shared, download the full workbook and import it into Google Sheets, or paste the example data into your own sheet.

Sample data

CaseInput AInput BBroken resultFixed result
Example100

Keep B2=10 and C2=0 unchanged while reproducing the error and testing the corrected formula.

Google Sheets practice workbook showing the complete source table with Input A 10 and Input B 0 before formulas are entered.

Reproduce, diagnose, and fix the error

Step 1: Select D2, enter =SQRT(C2-B2), and press Enter. Because C2-B2 is 0-10=-10, D2 must display #NUM!.

=SQRT(C2-B2)
Google Sheets with D2 selected, =SQRT(C2-B2) visible in the formula bar, #NUM! displayed in D2, and the source inputs still visible.

Step 2: Inspect the expression inside SQRT. The source values are valid numbers, but their subtraction order produces -10. This is a numeric-domain problem, not a formatting problem.

Step 3: Select E2, enter =SQRT(B2-C2), and press Enter. B2-C2 is 10, so E2 should calculate approximately 3.16227766 while D2 remains #NUM! for comparison.

=SQRT(B2-C2)
Google Sheets with E2 selected, =SQRT(B2-C2) visible in the formula bar, approximately 3.16227766 displayed in E2, and the original #NUM! still visible in D2.

Checkpoint

CellExpected
B210
C20
D2#NUM!
E23.16227766

The source inputs remain unchanged. D2 proves the negative-input failure, and E2 proves the corrected subtraction order returns a valid real-number result.

Common mistakes and fixes

If E2 still returns #NUM!, confirm B2 and C2 are numeric and verify the expression inside SQRT is nonnegative. If your real model legitimately needs square roots of negative numbers, a real-number SQRT formula is not the right operation.

Independent practice

Temporarily change B2 from 10 to 16. Verify D2 still returns #NUM! and E2 recalculates to 4, then restore B2 to 10 and confirm the checkpoint returns.

Key takeaways

  • ✓#NUM! can appear when a function receives a numeric value outside its valid domain.
  • ✓For this example, C2-B2 equals -10, so SQRT cannot return a real-number result.
  • ✓Inspect the expression that feeds the function before adding error-handling wrappers.
  • ✓Correcting the subtraction order makes the SQRT input nonnegative without changing source cells.
  • ✓Test one changed input, confirm recalculation, and restore the sample before finishing.
QUICK CHECK

Check your understanding

Answer four questions about the practice sheet.

1. Why does =SQRT(C2-B2) return #NUM! in this lesson?
2. What is the root cause to inspect before using IFERROR?
3. What should =SQRT(B2-C2) return with B2=10 and C2=0?
4. What should happen after temporarily changing B2 to 16?

Next lesson

Continue with Fix #ERROR! messages.