IMREAL in Excel: Extract Real Components and Audit Complex Calculations
Extract real coefficients from complex values in Excel, rebuild numeric component columns and check sums, products and information lost by projection.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: IMREAL(inumber) returns the real coefficient of a complex value. For 4+3i it returns the ordinary number 4, not the magnitude five and not the complete complex value.
Availability and version history
- Introduced: the first introduction version is not established by the reviewed official history.
- Availability: official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016.
- Checked: October 14, 2026; official IMREAL reference. Documentation and independent models; no native Excel execution or wider platform certification.
Syntax and the component being returned
=IMREAL(inumber)
Inumber is required. Microsoft documents complex text written with i or j notation and recommends COMPLEX when the real and imaginary coefficients already occupy numeric cells.
A complex value a+bi contains two coefficients. IMREAL returns a; IMAGINARY returns b. The real coefficient can be negative or zero. It is a signed coordinate, not a distance or a general measure of the size of the complex value.
The dedicated reference does not provide a complete malformed-input, whitespace or coercion/error table. The worked examples use explicit complex strings or values constructed from numeric coefficients. Do not infer acceptance of arbitrary imported text from these controls.
Example 1: extract a numeric real-component column
Enter only the first column below as text in A2:A5. In B2 use =IMREAL(A2) and fill through B5.
| A, complex text | B, expected real coefficient |
|---|---|
| 4+3i | 4 |
| -2+6i | -2 |
| 5-i | 5 |
| 0+2i | 0 |
The fourth record has a zero real coefficient but still has a nonzero imaginary component. IMREAL returning zero does not mean that the entire complex value equals zero.
=SUM(B2:B5) returns seven. The sum uses ordinary numeric coefficients extracted into a clearly labeled helper column. A label such as Real component is more informative than Value when the full complex records remain alongside it.
For a single j-notation control, =IMREAL("4+3j") also has expected result four. Keep suffix conventions consistent when combining multiple values through other complex functions.
Example 2: construct values from numeric input
Enter real coefficients 4 and −2 in E2:E3, and imaginary coefficients 3 and 6 in F2:F3. In G2 use =COMPLEX(E2,F2) and fill down, giving 4+3i and −2+6i.
Then =IMREAL(G2) and =IMREAL(G3) return four and −2. This construction separates numeric inputs from the resulting complex representation and avoids manually assembling a sign or imaginary suffix with text concatenation.
The original numeric cells are also an independent check: compare each extracted result with its source real coefficient. Both comparisons are TRUE for this fixture.
Advanced example: reconstruct and inspect every component
For A2:A5, enter =IMAGINARY(A2) in C2 and fill down. Expected imaginary coefficients are 3, 6, −1 and 2.
In D2 enter =COMPLEX(B2,C2) and fill down. The reconstructed quantities are 4+3i, −2+6i, 5−i and 2i. The last may be written without the explicit zero real term; quantity reconstruction is not a promise of character-for-character preservation of the input text.
You can verify components again with =IMREAL(D2)=B2 and =IMAGINARY(D2)=C2. Both comparisons are TRUE for each record in this exact small fixture.
Advanced example: real parts of sums and products
=IMREAL(IMSUM(A2,A3,A4,A5)) returns seven, agreeing with the sum of B2:B5. The complete IMSUM result is 7+10i because the imaginary coefficients total ten.
For a weighted combination, =2*IMREAL(A2)+3*IMREAL(A3) returns two. The real projection is linear: corresponding coefficients can be added and multiplied by ordinary real weights.
Multiplication of two complex values is different. For 4+3i and 1−2i, the product’s real coefficient is 4×1−3×(−2)=10. Therefore =IMREAL(IMPRODUCT("4+3i","1-2i")) returns ten, whereas multiplying the separate real coefficients alone gives only four.
IMPRODUCT includes the contribution from the imaginary coefficients. Dropping them before multiplication loses information required by the result.
Projection loses information
The values 4+3i and 4−3i both have real coefficient four. Their imaginary coefficients have opposite signs, even though each has magnitude five. An IMREAL-only report cannot distinguish them.
Similarly, =IMABS("4+3i") returns five, while IMREAL returns four. IMABS measures magnitude and answers a different question from extracting a coordinate.
Retain the original complex value or both numeric component columns when later operations need the complete record. A matching real coefficient alone does not prove that two complex values are equal.
Input and precision scope
Use explicit numeric component checks when validating a calculation. Formatting an extracted coefficient to a few decimal places changes its display, not the underlying result or equality rule.
Malformed complex strings, uppercase suffix handling, mixed errors and extreme precision boundaries are outside the dedicated IMREAL evidence reviewed here. The examples are independently calculated from small exact coefficients, with no native Excel execution.
References and verification
Expected outputs are independently calculated examples or documented rules, not captured native Excel results. Formulas use English function names and comma argument separators. Locale, rendering and boundary restrictions are stated where relevant.