Sample Data
Sample data with numbers in columns A and B, including zeros to cause division errors.
| Cell | Value |
|---|---|
| A1 | 10 |
| A2 | 0 |
| A3 | 5 |
| B1 | 2 |
| B2 | 0 |
| B3 | 0 |
Sample data with numbers in columns A and B, including zeros to cause division errors.
| Cell | Value |
|---|---|
| A1 | 10 |
| A2 | 0 |
| A3 | 5 |
| B1 | 2 |
| B2 | 0 |
| B3 | 0 |
=IFERROR(A1/B1, "Error")A B 1 | 10 | 2 | 2 | 0 | 0 | 3 | 5 | 0 | Formula in C1: =IFERROR(A1/B1, "Error") References A1 and B1 for division.
A B C 1 | 10 | 2 | 5 | 2 | 0 | 0 | | 3 | 5 | 0 | | Cell C1 shows 5, the result of the division without error.