IMREAL function
The IMREAL function in Excel returns the real (non-imaginary) part of a complex number.
Syntax
IMREAL(inumber)
Parameters
inumber: This is the complex number from which you want to extract the real part. The complex number can be provided as a string in the forma + biora + bj, whereais the real part, andbis the imaginary part. You can also use a cell reference that contains a complex number.
How It Works
The IMREAL function extracts and returns only the real part (the coefficient of the real number) of the given complex number.
For a complex number z = a + bi:
- The real part is
a, and the imaginary part isb. - IMREAL will return the value of
a(the real part) as a number.
Examples
- Extract the Real Part of a Complex Number: To extract the real part of the complex number
3 + 4i:=IMREAL("3+4i")The result will be
3, which is the real part of the complex number. - Extract the Real Part from a Cell Reference: If cell
A1contains the complex number"2+5i", you can extract the real part using:=IMREAL(A1)The result will be
2. - Complex Number with a Negative Real Part: If the complex number is
-6 + 7i, the real part is-6, so:=IMREAL("-6+7i")The result will be
-6. - Purely Imaginary Number: For a purely imaginary number like
"0+2i", the real part is0, so:=IMREAL("0+2i")The result will be
0.
Important Notes
- The IMREAL function works only with valid complex numbers. If the input is not a valid complex number, Excel will return a #VALUE! error.
- Complex numbers in Excel can be entered with either
iorjto represent the imaginary part. - The IMREAL function only returns the real part of the complex number; it does not return the imaginary part. Use the IMAGINARY function to retrieve the imaginary part.
Summary
The IMREAL function in Excel is used to extract and return the real part of a complex number. This function is helpful when working with complex numbers in calculations that involve separating the real and imaginary components.