IMDIV function
Divides one complex number by another, for example "-238+240i" ÷ "10+24i" = "5+12i".
Available in Excel 2007 and later (Excel 2003 needed the Analysis ToolPak add-in), Microsoft 365, Excel for the web, Excel for Mac
Excel 2007 and laterWorks in Google Sheets
Syntax
IMDIV(inumber1, inumber2)| Argument | What it means | |
|---|---|---|
inumber1 | Required | The numerator (dividend). |
inumber2 | Required | The denominator (divisor). Must not be 0. |
Returns: A complex number as text.
How IMDIV works
IMDIV divides two complex numbers. By hand you would multiply the top and bottom by the conjugate of the denominator to make the bottom real; IMDIV does all of that in one step.
The classic use is Ohm's law rearranged: current = voltage ÷ impedance, or impedance = voltage ÷ current, when everything has a phase. Voltage dividers, filter transfer functions and parallel impedances (Z1·Z2 / (Z1+Z2)) all need it. Dividing by 0 returns #NUM!. Like all IM functions, it reads complex numbers written as text (x+yi or x+yj) and returns its answer as text with up to 15 significant digits, so you can feed the result straight into another IM function.
Examples
1Divide complex numbers
| A | B | C | |
|---|---|---|---|
| 1 | z1 | z2 | |
| 2 | -238+240i | 10+24i | 5+12i |
Result: 5+12i
Multiply top and bottom by 10−24i: the denominator becomes 676 and the numerator 3380+8112i, giving 5+12i.
2Current through an impedance
| A | B | C | |
|---|---|---|---|
| 1 | Voltage (V) | Impedance (Ω) | |
| 2 | 230 | 40+30i | 3.68-2.76i |
Result: 3.68-2.76i
I = V / Z = 230 / (40+30i) = 3.68−2.76i amps. Its size, =IMABS(C2), is 4.6 A, and the negative angle shows the current lags the voltage.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | The divisor is 0, or an argument is not a valid complex number. | Check the denominator with IMABS(B2)=0 first. |
#VALUE! | The argument is a logical value, or the formula mixes the i and j suffixes. | Use one suffix consistently throughout a calculation. |
Tips
- Parallel impedances:
=IMDIV(IMPRODUCT(Z1,Z2), IMSUM(Z1,Z2)).
Google Sheets
IMDIV also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
IMDIV in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Danish | IMAGDIV |
| Dutch | C.QUOTIENT |
| Finnish | KOMPLEKSI.OSAM |
| French | COMPLEXE.DIV |
| Hungarian | KÉPZ.HÁNYAD |
| Italian | COMP.DIV |
| Polish | ILORAZ.LICZB.ZESP |
| Russian | МНИМ.ДЕЛ |
| Spanish | IM.DIV |
| Turkish | SANBÖL |