The Google Sheets IMDIV function returns one complex number divided by another. Its syntax is IMDIV(dividend, divisor), where both arguments are complex numbers in the form a+bi or a+bj. For example, =IMDIV("7+4i", "2+3i") returns 2-1i.
What Is a Complex Number in Sheets?
A complex number combines a real part and an imaginary part, written as a+bi, where i is the square root of -1. Google Sheets uses the letters i or j to denote the imaginary unit. The IMDIV function is part of the Engineering category, which includes other complex-number functions like IMSUM, IMPRODUCT, and IMSUB. These functions let you perform arithmetic on complex numbers without manually applying algebraic formulas.
How IMDIV Works
When you divide two complex numbers, the result is calculated using the formula:
(a+bi) / (c+di) = ((ac+bd) + (bc-ad)i) / (c²+d²)
Google Sheets handles this internally. The dividend is the numerator, and the divisor is the denominator. Both arguments must be valid complex numbers, either entered as strings with quotes or as cell references containing complex numbers. The function returns a text string representing the quotient in the same format as the inputs.
Syntax and Arguments
The full syntax is:
IMDIV(dividend, divisor)
- dividend (required) – The complex number to be divided.
- divisor (required) – The complex number to divide by.
Both arguments can be:
- Text strings like
"4+3i"or"2-j". - Cell references to cells containing complex numbers.
- Results of other complex-number functions.
Examples and Usage
Let’s assume cell A1 contains "10+5i" and cell B1 contains "2+i". The formula =IMDIV(A1, B1) returns 5+0i because (10+5i) divided by (2+i) equals 5.
Another example: =IMDIV("7+4i", "2+3i") returns 2-1i. You can also use IMDIV with results from other functions, like =IMDIV(IMPRODUCT("1+2i", "3+4i"), "2+2i").
Common Errors and Troubleshooting
If you see an error, it’s usually one of these:
#N/A– The divisor is zero (e.g.,"0+0i"), which is mathematically undefined.#VALUE!– One of the arguments is not a valid complex number. Check for missingiorj, extra spaces, or incorrect formatting.#NAME?– You might have mistyped the function name. Ensure it’sIMDIV.
Also, note that the function expects the imaginary unit to be consistent. If you mix i and j in the same formula, Sheets may still interpret them correctly, but it’s safer to use one consistently.
Comparing IMDIV with Other Functions
IMDIV is specifically for division. For other operations, use:
IMSUM– Adds complex numbers.IMSUB– Subtracts complex numbers.IMPRODUCT– Multiplies complex numbers.IMABS– Returns the magnitude (absolute value).IMARGUMENT– Returns the angle (argument) in radians.
These functions all belong to the same Engineering category and share similar syntax rules.
Frequently Asked Questions
Can I use IMDIV with real numbers only?
Yes, but you must write them as complex numbers, e.g., "5+0i". If you enter a plain number like 5, Sheets may treat it as a real number and return an error. Use COMPLEX to convert real numbers to complex format if needed.
What does the result look like?
The result is always a text string in the form a+bi or a-bi. If the imaginary part is zero, it still shows as a+0i. You can use IMREAL and IMAGINARY to extract the real and imaginary parts separately.
Why does IMDIV return a text value?
Complex numbers are stored as text in Google Sheets because they aren’t native numeric types. This allows the functions to handle the i symbol. You can’t perform regular arithmetic on the result directly; use other IM functions instead.
Is IMDIV available in Excel?
Yes, Excel has an IMDIV function with the same syntax. However, Excel’s version may differ slightly in how it handles errors or formatting. The core behavior is identical.
Can I divide more than two complex numbers at once?
No, IMDIV only takes two arguments. To divide multiple numbers, nest the function: =IMDIV(IMDIV(A1, B1), C1) or use IMPRODUCT with a reciprocal.
Practical Tips and Alternatives
If you need to perform complex division frequently, consider using the COMPLEX function to create numbers from real and imaginary parts, then reference those cells. For example, =COMPLEX(3, 4) returns 3+4i. This avoids typos in text strings.
For advanced users, you can also manually calculate division using real and imaginary parts with standard arithmetic, but IMDIV is more reliable and easier to read. If you’re working with arrays of complex numbers, you can use ARRAYFORMULA with IMDIV to divide entire columns at once.
Related
- T Series Balance Sheet: Key Figures Explained
- Google Sheets Subtract Percentage: Easy Formula
- PPP Camp Data Entry: Registration Guide
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Gold Data in Excel: Build a PivotTableYes. To analyze gold data in an Excel PivotTable, put each observation in a separate row, keep dates…
- Excel Merge Cells and Keep All Text Without Data LossExcel’s Merge Cells command does not combine the contents of multiple cells: it keeps the value in the…
- Google Sheets Checkbox Options: Values, Setup, and UsesGoogle Sheets checkboxes can store the default values TRUE and FALSE, or custom checked and unchecked values such…
- Currency Conversion in Google Sheets: Formulas and TipsTo convert an amount in Google Sheets, multiply it by a rate returned by GOOGLEFINANCE. For example, if…
- Date Excel Shortcut: Insert Today’s DateIn Excel for Microsoft 365 on Windows, press Ctrl+; (semicolon) to insert today’s date as a fixed value…
- Split Text in Google Sheets: Methods, Steps, and TipsTo split text in Google Sheets, select the cells you want to separate, choose Data > Split text…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.