Practice free

IMCSC function

IMCSC returns the cosecant of a complex number as text in complex number form. To get a plain number, wrap the result in IMREAL or IMAGINARY.

Example

Read it as a sentence: find the cosecant of the complex number 1+i, then keep only its real part, which gives 0.621518017170428.

Practice this in the app

Syntax

IMCSC(inumber)

inumber (required)
A complex number as text, like "3+4i".

Returns: The result as a complex number in text form.

What Excel actually returns

Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.

FormulaExcel showsCase
=IMCSC("3+4i") 0.0051744731840194+0.036275889628626i "3+4i"
=IMCSC("3+4j") 0.0051744731840194+0.036275889628626j Suffix j
=IMCSC(5) -1.04283521277141 Pure real number 5
=IMCSC("5") -1.04283521277141 Pure real text "5"
=IMCSC("i") -0.850918128239322i Pure imaginary "i"
=IMCSC("-2i") 0.275720564771783i "-2i"
=IMCSC(0) #NUM! Zero
=IMCSC("3+4I") #NUM! Uppercase I

Watch out for

  • Result is text; wrap in IMREAL or IMAGINARY to get a number.

Where it works

Excel
IMCSC arrived in Excel 2013. Older versions do not have it.
Google Sheets
Same name, same behaviour for everyday use.

Part of Engineering functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .