
The IMARGUMENT function calculates the argument theta θ which is an angle displayed in radians based on complex numbers in rectangular form like z = x + yi or z = x + yj.
1. IMARGUMENT Function Syntax
IMARGUMENT(inumber)
Back to top
2. IMARGUMENT Function Arguments
inumber |
Required. A complex number in x+yi or x+yj text format. |
Back to top
3. IMARGUMENT function example

The image above shows how to calculate the θ with the IMARGUMENT function based on the corresponding complex numbers on the same row specified in cell B3. The dashed circle represents the complex modulus |z| of "2+3i" and the angle theta represents its complex argument.
Formula in cell C3:
=IMARGUMENT(B3)
The IMARGUMENT function returns a value expressed in radians, the image above shows a chart where theta θ is displayed in degrees.
3.1 Explaining formula
Step 1 - Populate arguments
IMARGUMENT(inumber)
becomes
IMARGUMENT(B3)
Step 2 - Evaluate IMARGUMENT function
IMARGUMENT(B3)
becomes
IMARGUMENT("2+3i")
and returns
0.982793723247329
Back to top
4. How is the theta θ calculated in detail?

The IMARGUMENT function calculates theta θ expressed in radians using this formula:
θ = tan-1(y/x) for x>0
Here is how 0.982793723247329 is calculated:
tan θ = y/x
becomes
θ = tan-1(y/x)
tan-1(y/x)
becomes
tan-1(3/2)
equals
0.982793723247329
Back to top
5. How to convert angle theta θ from radians to degrees

The following formula calculates theta θ based on a given complex number in rectangular form, the result is a value expressed in radians.
The DEGREE function takes the radian value and converts it to degrees.
Formula:
=DEGREES(IMARGUMENT(B3))
5.1 Explaining formula
Step 1 - Calculate theta θ in radians
The IMARGUMENT function calculates theta θ which is an angle displayed in radians based on complex numbers in rectangular form.
Function syntax: IMARGUMENT(inumber)
IMARGUMENT(B3)
becomes
IMARGUMENT("2+3i")
and returns
0.982793723247329
Step 2 - Convert radians to degrees
The DEGREES function calculates degrees from radians.
Function syntax: DEGREES(angle)
DEGREES(IMARGUMENT(B3))
becomes
DEGREES(0.982793723247329)
and returns
56.3099324740202
Back to top
6. How to plot theta θ - Argand diagram

The image above shows an Argand diagram which is a chart of complex numbers, the dashed circle is the modulus of the complex numbers.
C1 = 2 +3i
|C1| = |2 +3i| = Modulus = square root of 13 = 3.605551
theta θ = tan-1(3/2) = 0.982793723247329 radians = 56.3099324740202 degrees
Change the complex number in cell B31 and the chart adjusts accordingly.
6.1 Calculate the numbers
We need to setup the worksheet before we can insert the scatter chart.

Value in cells C24, D27, C30, and D30: 0
Formula in cell D24, D25, D28, and D31:
=IMAGINARY(B31)
Formula in cell C25. C27, C28, and C31:
=IMREAL(B31)
Value in cell D27: 0
Value in cells C30 and D30: 0
Formula in cell B33:
="θ: "&ROUND(DEGREES(ATAN(D31/C31)),1)&"°"
6.2 Explaining formula in cell B33
The value in cell B33 will be used in the chart, I will show you how to do that below.
Step 1 - Calculate theta θ
The ATAN function calculates the arctangent of a number.
Function syntax: ATAN(number)
ATAN(D31/C31)
Step 2 - Convert radians to degree
The ATAN function calculates the arctangent of a number.
Function syntax: ATAN(number)
DEGREES(ATAN(D31/C31))
Step 3 - Round degrees to one digit
The ATAN function calculates the arctangent of a number.
Function syntax: ATAN(number)
ROUND(DEGREES(ATAN(D31/C31)),1)
Step 4 - Concatenate values
"θ: "&ROUND(DEGREES(ATAN(D31/C31)),1)&"°"
Back to top
6.3 Create values for a circle on the chart

The following formulas in cells C33 and D33 calculates values that creates a circle on the chart, the image above shows a circle on a chart.
Formula in cell C33:
=SIN(PI()/12*(ROWS($A$1:A1)-1))*IMABS($B$31)
6.4 Explaining formula in cell C33
Step 1 - Calculate each 15 degree segment
The PI function returns the number pi (¶).
Function syntax: PI()
PI()/12
Step 2 - Create a sequence
The ROWS function calculate the number of rows in a cell range.
Function syntax: ROWS(array)
ROWS($A$1:A1)-1
Step 3 - Multiply segment with sequence
The ROWS function calculate the number of rows in a cell range.
Function syntax: ROWS(array)
PI()/12*(ROWS($A$1:A1)-1)
Step 4 - Calculate sine
The SIN function calculates the sine of an angle.
Function syntax: SIN(number)
SIN(PI()/12*(ROWS($A$1:A1)-1))
Step 5 - Calculate modulus
The IMABS function calculates the absolute value (modulus) of a complex number in x + yi or x + yj text format.
Function syntax: IMABS(inumber)
IMABS($B$31)
Step 6 - Multiply sine with modulus
SIN(PI()/12*(ROWS($A$1:A1)-1))*IMABS($B$31)
Back to top
Formula in cell D33:
=COS(PI()/12*(ROWS($A$1:A1)-1))*IMABS($B$31)
The formula in cell D33 is the same as in cell C33, except it calculates the cosine instead.
The cos function calculates the cosine of an angle.
Function syntax: COS(number)
Copy cells C33 and D33, paste to 24 rows below so the entire circle can be charted.
6.5 Insert "Scatter with smooth lines" chart
- Select cell range B24:D57.
- Go to tab "Insert" on the ribbon.
- Press with left mouse button on the "Scatter (x,y) or Bubble chart" button on the ribbon.
- A popup menu appears. Press with left mouse button on the "Scatter with smooth lines" button.
A new chart is now created. Move the chart to the desired location.

Select the chart, the boundaries now have "handles" that you can drag with the mouse to resize the chart.
- Double-press with left mouse button on the circle to select all lines on the chart and open the settings pane.

- Press with left mouse button on the "Fill & Line" button on the settings pane.
- Press with left mouse button on the "Line" on the settings pane, new settings in context to "Line" shows up.
- Press with left mouse button on the "Dash type" button, select a dashed line.

- All lines are now dashed. Press with left mouse button on the "Color" button and change to black.
6.6 Change the complex number line on the chart
- Select only the "complex number" line. Press with left mouse button on the "complex number" line once to select it if you have all lines selected.
If no lines are selected then press with left mouse button on the "complex number" line twice to select it.
- Press with left mouse button on the "Line" on the settings pane. Change color, dash type and add an ending arrow.

- Repeat these steps for the imaginary and real lines.

Change the chart tite, use the settings pane to change the axis line widths and colors, remove chart grids.

- Select the "complex number" line (blue).
- Press with left mouse button on the "plus" sign next to the chart.

- Press with left mouse button on the check box next to "Data Labels" to enable data labels.
- Open the settings pane.
- Go to "Label options"

- Press with left mouse button on checkbox next to "Value From Cells", select cell B33.

- Move the data label to its destination.

Back to top
Back to top
Useful links
IMARGUMENT function - Microsoft
The IMARGUMENT function function is one of many functions in the 'Engineering' category.
Converts a binary number to the decimal number system.
Converts a binary number to hexadecimal.
Converts a binary number to octal.
Calculates a bitwise 'AND' of two numbers.
Calculates a number whose binary representation is shifted left by a specified number of bits.
Performs a bitwise 'OR' of two numbers.
Calculates the number where the binary equivalent is shifted right by a specified number of bits and then converted back to a number.
Calculates a decimal number that is a result of a bitwise comparison "XOR" of two numbers.
Returns a complex number based on a real and imaginary number.
Converts a number from one measurement system to another.
Converts a decimal number to a binary number.
Converts a decimal number to a hexadecimal number.
Converts a decimal number to an octal number.
Evaluates whether two numerical values are equal.
Converts a hexadecimal number to a binary number.
Converts a hexadecimal number to a decimal number.
Converts hexadecimal to octal.
Calculates the absolute value (modulus) of a complex number in x + yi or x + yj text format.
Calculates the imaginary value of a complex number in x + yi or x + yj text format.
Calculates theta θ which is an angle displayed in radians based on complex numbers in rectangular form.
Calculates the complex conjugate of a complex number in x + yi or x + yj text format.
Calculates the cosine of a complex number in x + yi or x + yj text format.
Calculates the hyperbole cosine of a complex number in x + yi or x + yj text format.
Calculates the cotangent of a complex number in x + yi or x + yj text format.
Calculates the cosecant of a complex number in x + yi or x + yj text format.
Calculates the hyperbolic cosecant of a complex number in x + yi or x + yj text format.
Calculates the quotient of two complex numbers in x + yi or x + yj text format.
Calculates the exponential of a complex number in x + yi or x + yj text format.
Calculates the natural logarithm of a complex number in x + yi or x + yj text format.
Calculates the base 10 logarithm of a complex number in x + yi or x + yj text format.
Calculates the base 2 logarithm of a complex number in x + yi or x + yj text format.
Calculates a complex number raised to a given power in x + yi or x + yj text format.
Calculates the product of complex numbers in x + yi or x + yj text format.
Calculates the real coefficient of a complex number in x + yi or x + yj text format.
Calculates the secant of a complex number in x + yi or x + yj text format.
Calculates the hyperbolic secant of a complex number in x + yi or x + yj text format.
Calculates the sine of a complex number in x + yi or x + yj text format.
Calculates the hyperbolic sine of a complex number in x + yi or x + yj text format.
Calculates the square root of a complex number in x + yi or x + yj text format.
Calculates the difference between two complex numbers in x + yi or x + yj text format.
Calculates the total of two or more complex numbers in x + yi or x + yj text format.
Calculates the tangent of a complex number in x + yi or x + yj text format.
Excel functions that let you resize, combine, and shape arrays.
Functions for backward compatibility with earlier Excel versions. Compatibility functions are replaced with newer functions with improved accuracy. Use the new functions if compatibility isn't required.
Perform basic operations to a database-like structure.
Functions that let you perform calculations to Excel date and time values.
Let's you manipulate binary numbers, convert values between different numeral systems, and calculate imaginary numbers.
Calculate present value, interest, accumulated interest, principal, accumulated principal, depreciation, payment, price, growth, yield for securities, and other financial calculations.
Functions that let you get information from a cell, formatting, formula, worksheet, workbook, filepath, and other entitites.
Functions that let you return and manipulate logical values, and also control formula calculations based on logical expressions.
These functions let you sort, lookup, get external data like stock quotes, filter values based a condition or criteria, and get the relative position of a given value in a specific cell range. They also let you calculate row, column, and other properties of cell references.
You will find functions in this category that calculates random values, round numerical values, create sequential numbers, trigonometry, and more.
Calculate distributions, binomial distributions, exponential distribution, probabilities, variance, covariance, confidence interval, frequency, geometric mean, standard deviation, average, median, and other statistical metrics.
Functions that let you manipulate text values, substitute strings, find string in value, extract a substring in a string, convert characters to ANSI code among other functions.
Get data from the internet, extract data from an XML string and more.
Latest updated articles.
More than 300 Excel functions with detailed information including syntax, arguments, return values, and examples for most of the functions used in Excel formulas.
More than 1300 formulas organized in subcategories.
Excel Tables simplifies your work with data, adding or removing data, filtering, totals, sorting, enhance readability using cell formatting, cell references, formulas, and more.
Allows you to filter data based on selected value , a given text, or other criteria. It also lets you filter existing data or move filtered values to a new location.
Lets you control what a user can type into a cell. It allows you to specifiy conditions and show a custom message if entered data is not valid.
Lets the user work more efficiently by showing a list that the user can select a value from. This lets you control what is shown in the list and is faster than typing into a cell.
Lets you name one or more cells, this makes it easier to find cells using the Name box, read and understand formulas containing names instead of cell references.
The Excel Solver is a free add-in that uses objective cells, constraints based on formulas on a worksheet to perform what-if analysis and other decision problems like permutations and combinations.
An Excel feature that lets you visualize data in a graph.
Format cells or cell values based a condition or criteria, there a multiple built-in Conditional Formatting tools you can use or use a custom-made conditional formatting formula.
Lets you quickly summarize vast amounts of data in a very user-friendly way. This powerful Excel feature lets you then analyze, organize and categorize important data efficiently.
VBA stands for Visual Basic for Applications and is a computer programming language developed by Microsoft, it allows you to automate time-consuming tasks and create custom functions.
A program or subroutine built in VBA that anyone can create. Use the macro-recorder to quickly create your own VBA macros.
UDF stands for User Defined Functions and is custom built functions anyone can create.
A list of all published articles.
How to comment
How to add a formula to your comment
<code>Insert your formula here.</code>
Convert less than and larger than signs
Use html character entities instead of less than and larger than signs.
< becomes < and > becomes >
How to add VBA code to your comment
[vb 1="vbnet" language=","]
Put your VBA code here.
[/vb]
How to add a picture to your comment:
Upload picture to postimage.org or imgur
Paste image link to your comment.
Contact Oscar
You can contact me through this contact form