IMREAL function
Returns the real coefficient of a complex number, for example 6 from "6-9i". The result is an ordinary number.
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
IMREAL(inumber)| Argument | What it means | |
|---|---|---|
inumber | Required | A complex number as text such as "3+4i" or "5-2j", a cell containing one, or a plain number. Build it with COMPLEX to avoid typing errors. |
Returns: A number: the real part x of x+yi.
How IMREAL works
IMREAL pulls the real part out of a complex number stored as text, so 6-9i gives 6. Combined with IMAGINARY, it converts IM-function output back into ordinary numbers you can round, chart and compare.
In AC circuits the real part of an impedance is its resistance and the real part of complex power is the real (active) power in watts, so IMREAL is often the last step of an engineering calculation.
Examples
1Real part of 6-9i
| A | B | |
|---|---|---|
| 1 | Complex | |
| 2 | 6-9i | 6 |
Result: 6
The real coefficient is 6.
2Active power from complex power
| A | B | C | |
|---|---|---|---|
| 1 | Voltage | Current | |
| 2 | 230 | 4-3i | 920 |
Result: 920
Complex power is S = V × conjugate(I) = 230 × (4+3i) = 920+690i. Its real part, 920 W, is the power actually consumed; 690 is reactive power.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | The text is not a valid complex number — for example it contains spaces (3 + 4i), a capital I, or a misplaced sign. | Create the value with COMPLEX or remove spaces with SUBSTITUTE. |
Tips
IMREALof a pure imaginary number such as"5i"is 0.
Google Sheets
IMREAL also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
IMREAL 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 | IMAGREELT |
| Dutch | C.REEEL.DEEL |
| Finnish | KOMPLEKSI.REAALI |
| French | COMPLEXE.REEL |
| German | IMREALTEIL |
| Hungarian | KÉPZ.VALÓS |
| Italian | COMP.PARTE.REALE |
| Norwegian (Bokmål) | IMREELL |
| Polish | CZ.RZECZ.LICZBY.ZESP |
| Russian | МНИМ.ВЕЩ |
| Spanish | IM.REAL |
| Turkish | SANGERÇEK |