IMCOT function

This article describes the formula syntax and usage of the IMCOT function (function: A prewritten formula that takes a value or values, performs an operation, and returns a value or values. Use functions to simplify and shorten formulas on a worksheet, especially those that perform lengthy or complex calculations.) in Microsoft Excel.


Returns the cotangent of a complex number in x+yi or x+yj text format.



The IMCOT function syntax has the following arguments.

Inumber    Required. A complex number for which you want the cotangent.


  • Use COMPLEX to convert real and imaginary coefficients into a complex number.
  • If inumber is a value that is not in the x+yi or x+yj text format, IMCOT returns the #NUM! error value.
  • If inumber is a logical value, IMCOT returns the #VALUE! error value.


The workbook below shows examples of this function. Inspect them, change existing formulas, or enter your own formulas to learn how the function works.

To work more in-depth with the example data in Excel, download the embedded workbook to your computer, and then open it in Excel.

Top of Page Top of Page

Applies to:
Excel 2013, Excel Online