Engineering function

IMCSC function

Returns the cosecant of a complex number, 1/sin(z).

Available in Excel 2013 and later, Microsoft 365, Excel for the web, Excel for Mac 2016 and later

Excel 2013 and laterWorks in Google Sheets

Syntax

IMCSC(inumber)
ArgumentWhat it means
inumberRequiredA 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 complex number as text.

How IMCSC works

IMCSC returns the cosecant of a complex number, the reciprocal of IMSIN: csc z = 1 / sin z. It is undefined at z = 0 and other multiples of π, where it returns #NUM!. Like all IM functions, it reads complex numbers written as text (x+yi or x+yj) and returns its answer as text with up to 15 significant digits, so you can feed the result straight into another IM function.

Complex trigonometric and hyperbolic functions are mostly used in electrical engineering (transmission lines, filters), control theory and physics. For everyday spreadsheets you will rarely need them, but they make it possible to keep a whole calculation in Excel instead of switching to a maths package.

Examples

1Evaluate at the imaginary unit i

B2fx=IMCSC(A2)
AB
1Complex number
2i-0.850918128239322i

Result: -0.850918128239322i

csc(i) = 1/(i·sinh(1)) = -i/sinh(1) ≈ -0.8509i.

2Cosecant of a real angle

A1fx=IMCSC(PI()/6)
A
12

Result: 2

csc(30°) = 1/sin(30°) = 1/0.5 = 2, returned as the text 2.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 13 KB

Common errors and how to fix them

ErrorWhy it happensFix
#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.
#VALUE!The argument is a logical value, or the formula mixes the i and j suffixes.Use one suffix consistently throughout a calculation.

Tips

  • The input is treated as radians, just like SIN and COS.

Google Sheets

IMCSC also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

IMCSC 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.

LanguageFunction name
DanishIMAGCSC
DutchC.COSEC
FinnishKOMPLEKSI.KOSEK
FrenchCOMPLEXE.CSC
GermanIMCOSEC
HungarianKÉPZ.CSC
ItalianCOMP.CSC
PolishCSC.LICZBY.ZESP
Portuguese (Brazil)IMCOSEC
RussianМНИМ.CSC
SpanishIM.CSC
TurkishSANCSC